topojson.core.join
Join
Join(self, data, options={})
This class targets the following objectives:
- Quantization of input linestrings if necessary
- Identifies junctions of shared paths
The join function is the second step in the topology computation. The following sequence is adopted:
- extract
- join
- cut
- dedup
- hashmap
Parameters
data
: dictobject created by the method topojson.extract.
quant_factor
: int, optional (default: None)quantization factor, used to constrain float numbers to integer values.
- Use 1e4 for 5 valued values (00001-99999)
- Use 1e5 for 6 valued values (000001-999999)
- Use 1e6 for 7 valued values (0000001-9999999)
Returns
to_dict
Join.to_dict(self)
Convert the Join object to a dictionary.
to_svg
Join.to_svg(self, separate=False, include_junctions=False)
Display the linestrings and junctions as SVG.
Parameters