def BoundingBoxObj(self): return createBBoxFromPostGISString(self.boundingbox, DATABASE_SRID)
def BoundingBoxObj(self): return createBBoxFromPostGISString(self.boundingbox, srid_database)
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)
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)