Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/t/i/TileStache-HEAD/TileStache/Goodies/Proj4Projection.py   TileStache(Download)
    def locationProj(self, location):
        """Convert from Location object to a Point object in the defined projection"""
        x,y = self.proj(location.lon, location.lat)
        return Point(x, y)
    def projLocation(self, point):
        """Convert from Point object in the defined projection to a Location object"""
        x,y = self.proj(point.x, point.y, inverse=True)
        return Location(y, x)