Exemple #1
0
 def __init__ (self, geom, data, invertProj = False):
     Spatial.__init__ (self, data)
     self.simplePolygons = []
     for s in geom:
         self.simplePolygons.append (SimplePolygon (s, invertProj))
     self.features = []
     self.db = None
Exemple #2
0
 def __init__ (self, geom, data = [], invertProj = False):
     Spatial.__init__ (self, data)
     if not invertProj:
         self.x = geom[0]
         self.y = geom[1]
     else:
         self.x = geom[1]
         self.y = geom[0]