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
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]