GeoJSON
A GeoJSON object represents a Feature or collection of Features.
Note
topojson.GeoJSON_FeatureCollection
A collection of features.
write
write(file: str)
Write expression to json.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
Path to a file |
required |
Raises:
| Type | Description |
|---|---|
RuntimeError
|
When serialization fails |
OsError
|
When the file cannot be written |
topojson.GeoJSON_Feature
A feature represents points, curves, and surfaces in coordinate space.
write
write(file: str)
Write expression to json.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
Path to a file |
required |
Raises:
| Type | Description |
|---|---|
RuntimeError
|
When serialization fails |
OsError
|
When the file cannot be written |