Skip to main content

Parquet module · geospatial loader

GeoParquetLoader

Read GeoParquet files into Arrow tables by default while preserving the metadata that describes geometry columns, coordinate systems, and encodings.

GeoParquetLoader map example

What it preserves

Keep the table and the spatial meaning together.

GeoParquetLoader exposes the data in a familiar table shape while carrying GeoParquet and GeoArrow metadata through the read boundary.

Default

Arrow table with geospatial metadata

Rows

Object-row table with parquet.shape: 'object-row-table'

Geometry

Supported encodings mapped to GeoArrow fields

Metadata

GeoParquet schema metadata preserved

Detailed guide

GeoParquetLoader reference

The sections below document usage, output shapes, metadata handling, and Parquet options.

GeoParquetLoader loads GeoParquet files into native Apache Arrow Table objects by default. Set parquet.shape: 'object-row-table' when row-oriented output is required.

Usage​

import {load} from '@loaders.gl/core';
import {GeoParquetLoader} from '@loaders.gl/tables/parquet';

const arrowTable = await load(url, GeoParquetLoader);
const rowTable = await load(url, GeoParquetLoader, {
parquet: {shape: 'object-row-table'}
});

Shapes​

ShapeOutput
object-row-tableloaders.gl object-row table
arrowApache Arrow Table with geospatial metadata

Geospatial Metadata​

When loading Arrow output, GeoParquetLoader preserves GeoParquet schema metadata and annotates compatible geometry fields with GeoArrow field metadata. Geometry column buffers are passed through unchanged.

For GeoJSON output, geometry columns are converted to GeoJSON geometries where supported.

Options​

GeoParquetLoader supports the same options as ParquetLoader.