Module scalar

Source
Expand description

Scalar references onto a parent GeoArrow array.

For all “native” GeoArrow scalar types, (all types defined in this module) it is O(1) and allocation-free for any coordinate access.

For “serialized” scalars emitted from the GenericWkbArray, WkbViewArray, GenericWktArray, and WktViewArray, there is an initial parsing step when accessing the scalar from the GeoArrowArrayAccessor trait.

All scalars implement geo_traits. You can iterate through geometry parts directly using the APIs exposed by geo_traits. Or, for simplicity at the cost of a memory copy, you can use the traits defined in geo_traits::to_geo to convert these scalars to [geo_types] objects (though keep in mind ).

§Converting to [geo_types]

You can convert these scalars to [geo_types] objects using the geo_traits::to_geo traits.

There are a couple drawbacks:

Structs§

GeometryCollection
An Arrow equivalent of a GeometryCollection
InterleavedCoord
An Arrow equivalent of a Coord
LineString
An Arrow equivalent of a LineString
MultiLineString
An Arrow equivalent of a MultiLineString
MultiPoint
An Arrow equivalent of a MultiPoint
MultiPolygon
An Arrow equivalent of a MultiPolygon
Point
An Arrow equivalent of a Point
Polygon
An Arrow equivalent of a Polygon
Rect
An Arrow equivalent of a Rect
SeparatedCoord
An Arrow equivalent of a Coord

Enums§

Coord
An Arrow equivalent of a Coord
Geometry
An Arrow equivalent of a Geometry