Expand description
Spatial extension types and metadata shared by their Arrow plugins.
Geometry types declare storage from SpatialMetadata, which holds the coordinate dimension
and an optional coordinate reference system. Shared metadata handling keeps these properties
consistent across the GeoArrow fields used to import and export each geometry.
Structs§
- Line
String - A line string:
geoarrow.linestring, stored asList<Struct<x, y[, z][, m]>>(an ordered path of vertices). - Line
String Data - A validated
LineStringarray (try_fromchecks the extension type). - Multi
Line String - A multilinestring:
geoarrow.multilinestring, stored asList<List<Struct<x, y[, z][, m]>>>(line strings of vertices). - Multi
Line String Data - A validated
MultiLineStringarray (try_fromchecks the extension type). - Multi
Point - A multipoint:
geoarrow.multipoint, stored asList<Struct<x, y[, z][, m]>>(a set of points). - Multi
Point Data - A validated
MultiPointarray (try_fromchecks the extension type). - Multi
Polygon - A multipolygon (
geoarrow.multipolygon); a singlePolygonis a one-element multipolygon. - Multi
Polygon Data - A validated
MultiPolygonarray (try_fromchecks the extension type). - Point
- A single location:
geoarrow.point, stored asStruct<x, y[, z][, m]>of non-nullablef64. - Point
Data - Polygon
- A polygon:
geoarrow.polygon, stored asList<List<Struct<x, y[, z][, m]>>>(rings of vertices). - Polygon
Data - A validated
Polygonarray (try_fromchecks the extension type). - Rect
- An axis-aligned bounding box (
geoarrow.box), stored asStruct<xmin, ymin[, ..], xmax, ymax[, ..]>. - Spatial
Metadata - Coordinate reference system (CRS) and coordinate dimension for spatial extension types.
- Spatial
Stored Metadata - Coordinate reference system stored alongside a spatial storage dtype.
- Well
Known Binary - An extension type for OGC Well-known Binary (WKB) data format.
- Well
Known Binary Data - A typed handle to an
ExtensionArraythat contains WKB-encoded data. - Wkb
- A reference to a value of well-known binary encoded geometry data.
Enums§
- Dimension
- Coordinate dimensions, matching GeoArrow. Field order is fixed:
x,y, thenzbeforem.
Functions§
- native_
geometry_ scalar_ from_ wkb - Decode a WKB geometry literal (DuckDB’s wire form for
GEOMETRYconstants) to its nativePoint/Polygon/MultiPolygonscalar.Nonefor unsupported types. Plan-time, one value only.