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
| API | Purpose |
|---|---|
GeoArrowTableConverter | Converts between GeoArrow and loaders.gl table shapes through the converter dispatcher. |
convertGeoArrowGeometry | Converts geometry columns between WKB, WKT, and native GeoArrow encodings. |
GeoArrowBuilder | Builds geometry vectors with explicit encoding, coordinate layout, and dimensions. |
validateGeoArrowField, validateGeoArrowVector | Checks declared geometry metadata and vector structure. |
inspectGeoArrowVector, inspectGeoArrowLayout | Inspects geometry values and physical storage. |
getGeoArrowBounds, getGeoArrowRowBounds | Computes whole-vector or per-row bounds. |
GeoArrowSpatialIndex | Supports local extent, feature-ID, and nearest-geometry queries. |
mapGeoArrowCoordinates, rewindGeoArrow | Transforms 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.