Esempio n. 1
0
    def to_multipolygon_list(self):
        """
        Interrogate geos_interface to return a list of:

        [Valid_polygon, Valid_polygon, ...]
        where Valid_polygon = [Simple_polygon,Simple_exclude,...]
        where Simple_polygon = [point,point,...]
        """
        return geos_to_list(self.geos_polygon)
Esempio n. 2
0
    def to_multipolygon_list(self):
        """
        Interrogate geos_interface to return a list of:

        [Valid_polygon, Valid_polygon, ...]
        where Valid_polygon = [Simple_polygon,Simple_exclude,...]
        where Simple_polygon = [point,point,...]
        """
        return geos_to_list(self.geos_polygon)
Esempio n. 3
0
 def to_list(self):  # FIXME - more to do
     multi_polygon_list = geos_to_list(self.geos_polygon)
     answer = []
     for poly in multi_polygon_list:
         answer.extend(poly)
     return answer
Esempio n. 4
0
 def to_list(self):  # FIXME - more to do
     multi_polygon_list = geos_to_list(self.geos_polygon)
     answer = []
     for poly in multi_polygon_list:
         answer.extend(poly)
     return answer