Input/Output

Input/Output#

from_geojson(geometry[, on_invalid])

Creates geometries from GeoJSON representations (strings).

from_ragged_array(geometry_type, coords[, ...])

Creates geometries from a contiguous array of coordinates and offset arrays.

from_wkb(geometry[, on_invalid])

Creates geometries from the Well-Known Binary (WKB) representation.

from_wkt(geometry[, on_invalid])

Creates geometries from the Well-Known Text (WKT) representation.

to_geojson(geometry[, indent])

Converts to the GeoJSON representation of a Geometry.

to_ragged_array(geometries[, include_z])

Converts geometries to a ragged array representation using a contiguous array of coordinates and offset arrays.

to_wkb(geometry[, hex, output_dimension, ...])

Converts to the Well-Known Binary (WKB) representation of a Geometry.

to_wkt(geometry[, rounding_precision, trim, ...])

Converts to the Well-Known Text (WKT) representation of a Geometry.