Skip to content

FeatureGeometryType

A FeatureGeometryType enumerator object which can have multiple shapes.

topojson.FeatureGeometryType_GeometryCollection

A feature geometry describes as a collection of feature geometries.

geometries instance-attribute

geometries: list[FeatureGeometryType]

write

write(file: str)

Write expression to json.

Parameters:

Name Type Description Default

file

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.

coordinates instance-attribute

coordinates: list[float]

write

write(file: str)

Write expression to json.

Parameters:

Name Type Description Default

file

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.

coordinates instance-attribute

coordinates: list[list[float]]

write

write(file: str)

Write expression to json.

Parameters:

Name Type Description Default

file

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.

coordinates instance-attribute

coordinates: list[list[float]]

write

write(file: str)

Write expression to json.

Parameters:

Name Type Description Default

file

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.

coordinates instance-attribute

coordinates: list[list[list[float]]]

write

write(file: str)

Write expression to json.

Parameters:

Name Type Description Default

file

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.

coordinates instance-attribute

coordinates: list[list[list[float]]]

write

write(file: str)

Write expression to json.

Parameters:

Name Type Description Default

file

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.

coordinates instance-attribute

coordinates: list[list[list[list[float]]]]

write

write(file: str)

Write expression to json.

Parameters:

Name Type Description Default

file

str

Path to a file

required

Raises:

Type Description
RuntimeError

When serialization fails

OsError

When the file cannot be written