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)
Exemple #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)
 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
Exemple #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