Beispiel #1
0
 def BoundingBoxObj(self):
     return createBBoxFromPostGISString(self.boundingbox, DATABASE_SRID)
Beispiel #2
0
 def BoundingBoxObj(self):
     return createBBoxFromPostGISString(self.boundingbox, srid_database)
Beispiel #3
0
 def BoundingBoxObj(self):
     return createBBoxFromPostGISString(self.boundingbox, DATABASE_SRID)
Beispiel #4
0
 def getBoundingBoxObjWithEpsg(cls, id, session, epsg=4314):
     query = 'SELECT st_astext(st_transform(boundingbox,  %s)) FROM messtischblatt WHERE id = %s'%(epsg, id)
     pg_geometry = session.execute(query,{'id':id}).fetchone()[0]
     return createBBoxFromPostGISString(pg_geometry, epsg)
Beispiel #5
0
 def getBoundingBoxObjWithEpsg(cls, id, session, epsg=4314):
     query = 'SELECT st_astext(st_transform(boundingbox,  %s)) FROM map WHERE id = %s'%(epsg, id)
     pg_geometry = session.execute(query,{'id':id}).fetchone()[0]
     return createBBoxFromPostGISString(pg_geometry, epsg)
Beispiel #6
0
 def BoundingBoxObj(self):
     return createBBoxFromPostGISString(self.boundingbox, srid_database)