def compute_topology(self, point_store, precision=None):
     """
     converts the MultiLine geometry into a set of linear rings
     and 'unifies' the points in the rings in order to compute topology
     """
     rings = []
     for line in self._geoms:
         rings.append(line.coords)
     self._topology_rings = unify_rings(rings, point_store, precision=precision, feature=self)
示例#2
0
 def compute_topology(self, point_store, precision=None):
     """
     converts the MultiLine geometry into a set of linear rings
     and 'unifies' the points in the rings in order to compute topology
     """
     rings = []
     for line in self._geoms:
         rings.append(line.coords)
     self._topology_rings = unify_rings(rings,
                                        point_store,
                                        precision=precision,
                                        feature=self)
 def compute_topology(self, point_store, precision=None):
     """
     converts the MultiPolygon geometry into a set of linear rings
     and 'unifies' the points in the rings in order to compute topology
     """
     rings = []
     num_holes = []
     for polygon in self._geoms:
         num_holes.append(len(polygon.interiors))  # store number of holes per polygon
         ext = polygon.exterior.coords
         rings.append(ext)
         for hole in polygon.interiors:
             rings.append(hole.coords)
     self._topology_rings = unify_rings(rings, point_store, precision=precision, feature=self)
     self._topology_num_holes = num_holes
 def compute_topology(self, point_store, precision=None):
     """
     converts the MultiPolygon geometry into a set of linear rings
     and 'unifies' the points in the rings in order to compute topology
     """
     rings = []
     num_holes = []
     for polygon in self._geoms:
         num_holes.append(len(polygon.interiors))  # store number of holes per polygon
         ext = polygon.exterior.coords
         rings.append(ext)
         for hole in polygon.interiors:
             rings.append(hole.coords)
     self._topology_rings = unify_rings(rings, point_store, precision=precision, feature=self)
     self._topology_num_holes = num_holes