The Geometry of Ecological Interactions: Lattice Models and Pair Approximation in Ecology