Skip to main content

Module reader

Module reader 

Source
Expand description

Parquet file reader with column projection and WKB geometry decoding.

Reads Overture Maps GeoParquet files one row group at a time. Each row group yields InputFeatures with decoded geometry.

Structs§

ReadReport
What reading one Parquet file found.

Constants§

MAX_BAD_WKB_PER_FILE
Most geometries of one Parquet file that may fail to decode as WKB before the read stops with an error. A handful of bad rows in billions is source noise; more is a sign of a damaged or changed file.
SOURCE_ID_PROP
Property key holding the original Overture string ID (GERS UUID).

Functions§

read_parquet_file
Read all features from a Parquet file, passing each to emit.
read_parquet_file_reported
read_parquet_file, with what the read found besides the feature count.
read_parquet_file_with_source_id
Read an Overture Parquet file, preserving the original string ID.
skipped_wkb_totals
(geometries, files) skipped for invalid WKB since the process started. A build prints the difference between two calls in its summary.