topojson.core.cut
Cut
Cut(self, data, options={})
This class targets the following objectives:
- Split linestrings given the junctions of shared paths
- Identifies indexes of linestrings that are duplicates
The cut function is the third step in the topology computation. The following sequence is adopted:
- extract
- join
- cut
- dedup
- hashmap
Returns
to_dict
Cut.to_dict(self)
Convert the Cut object to a dictionary.
to_svg
Cut.to_svg(self, separate=False, include_junctions=False)
Display the linestrings and junctions as SVG.
Parameters