FeatureGeometryType
A FeatureGeometryType enumerator object which can have multiple shapes.
FeatureGeometryType_GeometryCollectionFeatureGeometryType_PointFeatureGeometryType_MultiPointFeatureGeometryType_LineStringFeatureGeometryType_MultiLineStringFeatureGeometryType_PolygonFeatureGeometryType_MultiPolygon
topojson.FeatureGeometryType
FeatureGeometryType = FeatureGeometryType_GeometryCollection | FeatureGeometryType_Point | FeatureGeometryType_MultiPoint | FeatureGeometryType_LineString | FeatureGeometryType_MultiLineString | FeatureGeometryType_Polygon | FeatureGeometryType_MultiPolygon
topojson.FeatureGeometryType_GeometryCollection
A feature geometry describes as a collection of feature geometries.
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.FeatureGeometryType_Point
A feature geometry describes as a position.
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.FeatureGeometryType_MultiPoint
A feature geometry describes as a serie of positions.
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.FeatureGeometryType_LineString
A feature geometry describes as a serie of positions.
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.FeatureGeometryType_MultiLineString
A feature geometry describes as multiple series of series of positions.
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.FeatureGeometryType_Polygon
A feature geometry describes as multiple rings of series of positions.
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.FeatureGeometryType_MultiPolygon
A feature geometry describes as multiple polygons of rings of series of positions.
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 |