topojson.core.join¶
Join ¶
Bases: Extract
This class targets the following objectives: 1. Quantization of input linestrings if necessary 2. Identifies junctions of shared paths
The join function is the second step in the topology computation. The following sequence is adopted: 1. extract 2. join 3. cut 4. dedup 5. hashmap
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
_any_ geometric type
|
Geometric data, as for |
required |
options
|
dict or TopoOptions
|
Options of the topology, see |
None
|
Returns:
| Type | Description |
|---|---|
dict
|
Output of |
to_svg ¶
to_svg(separate=False, include_junctions=False)
Display the linestrings and junctions as SVG.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
separate
|
boolean
|
If |
False
|
include_junctions
|
boolean
|
If |
False
|