Skip to main content

GeoArrow processing

@loaders.gl/core/geoarrow provides conversion, inspection, validation, and spatial processing for geospatial Arrow tables. Applications can import this utility subpath when they need more than the geometry construction helpers used by loaders.

GeoArrow is independent of the deprecated GIS package. See the GIS migration map for replacement imports, the combined GEOARROW_CONVERTERS bundle, and legacy rendering allocation semantics.

npm install @loaders.gl/core

API groups​

APIPurpose
GeoArrowTableConverterConverts between GeoArrow and loaders.gl table shapes through the converter dispatcher.
convertGeoArrowGeometryConverts geometry columns between WKB, WKT, and native GeoArrow encodings.
GeoArrowBuilderBuilds geometry vectors with explicit encoding, coordinate layout, and dimensions.
validateGeoArrowField, validateGeoArrowVectorChecks declared geometry metadata and vector structure.
inspectGeoArrowVector, inspectGeoArrowLayoutInspects geometry values and physical storage.
getGeoArrowBounds, getGeoArrowRowBoundsComputes whole-vector or per-row bounds.
GeoArrowSpatialIndexSupports local extent, feature-ID, and nearest-geometry queries.
mapGeoArrowCoordinates, rewindGeoArrowTransforms coordinates or polygon ring orientation.

Geometry conversion​

import {convertGeoArrowGeometry} from '@loaders.gl/core/geoarrow';

// geoarrowTable is an existing geospatial Arrow table.
const wkbTable = convertGeoArrowGeometry(geoarrowTable, 'geoarrow.wkb');

See GeoArrow converters for column selection and encoding support, and spatial queries for index usage and CRS requirements. Loader implementations should use the focused helpers in @loaders.gl/core/arrow-geometry instead of depending on the larger processing module.

Sources and credits​

See the package source and license inventory and the project-wide Attributions and Credits.

Inspiration and attribution​

Kyle Barron’s GeoArrow work inspired loaders.gl’s GeoArrow integration and its geospatial Arrow conversion and processing APIs.