Skip to main content

Crate oxigdal_gpkg

Crate oxigdal_gpkg 

Source
Expand description

Pure Rust GeoPackage (GPKG) reader and writer.

Implements a minimal SQLite binary format parser (sqlite_reader) and a GeoPackage schema layer (gpkg) without any C / FFI dependencies. Also includes a pure-Rust writer (writer) that can produce valid GeoPackage files from scratch.

Re-exports§

pub use btree::CellValue;
pub use btree::MasterEntry;
pub use btree::count_table_rows;
pub use btree::scan_sqlite_master;
pub use btree::scan_table;
pub use btree::scan_table_paginated;
pub use coverage::CoverageDatatype;
pub use coverage::GridCellEncoding;
pub use coverage::GriddedCoverage;
pub use coverage::TileGriddedAncillary;
pub use coverage::load_gridded_coverages;
pub use coverage::load_gridded_tile_ancillary;
pub use coverage::unscale_tile_buffer_i16;
pub use coverage::unscale_tile_buffer_u16;
pub use coverage::unscale_value;
pub use data_columns::DataColumn;
pub use data_columns::DataColumnsCatalog;
pub use data_columns::read_data_columns_rows;
pub use error::GpkgError;
pub use extensions::ExtensionScope;
pub use extensions::GpkgExtension;
pub use filter::Comparator;
pub use filter::FilterExpr;
pub use filter::FilterOperand;
pub use filter::Predicate;
pub use filter::evaluate as evaluate_filter;
pub use gpkg::GeoPackage;
pub use gpkg::GpkgContents;
pub use gpkg::GpkgDataType;
pub use gpkg::GpkgGeometryColumn;
pub use gpkg::GpkgSrs;
pub use incremental_mutation::GeoPackageEditor;
pub use incremental_mutation::MutationStats;
pub use integrity::GPKG_APP_ID;
pub use integrity::IntegrityIssue;
pub use integrity::IntegrityReport;
pub use integrity::MIN_USER_VERSION;
pub use integrity::REQUIRED_SRS;
pub use integrity::check_integrity;
pub use integrity::check_integrity_strict;
pub use metadata::GpkgMetadata;
pub use metadata::GpkgMetadataReference;
pub use metadata::MetadataScope;
pub use metadata::ReferenceScope;
pub use multi_geom::GeometryColumnDef;
pub use multi_geom::MultiGeomColumnSet;
pub use multi_geom::has_multiple_geometry_columns;
pub use multi_geom::load_all_geometry_columns;
pub use multi_geom::load_geometry_columns_for_table;
pub use related_tables::GpkgRelation;
pub use related_tables::MappingRow;
pub use related_tables::RelationType;
pub use rtree::GpkgRTreeReader;
pub use rtree::RTreeEntry;
pub use schema_constraints::ConstraintType;
pub use schema_constraints::ConstraintValidator;
pub use schema_constraints::ConstraintViolation;
pub use schema_constraints::DataColumnConstraint;
pub use schema_constraints::glob_matches;
pub use schema_constraints::load_data_column_constraints;
pub use sqlite_reader::SqliteHeader;
pub use sqlite_reader::SqliteReader;
pub use sqlite_reader::TextEncoding;
pub use tile_matrix::TileMatrix;
pub use tile_pyramid::TilePyramidReader;
pub use vector::CoordDim;
pub use vector::FeatureRow;
pub use vector::FeatureTable;
pub use vector::FieldDefinition;
pub use vector::FieldType;
pub use vector::FieldValue;
pub use vector::GpkgBinaryParser;
pub use vector::GpkgGeometry;
pub use vector::Point4D;
pub use vector::SrsInfo;
pub use vector::WKB_EWKB_M_HIGHBIT;
pub use vector::WKB_EWKB_ZM_HIGHBIT;
pub use vector::WKB_POINT_M;
pub use vector::WKB_POINT_ZM;
pub use vector::feature_table_from_geojson;
pub use vector::feature_table_to_geojson;
pub use vector::geojson_geom_to_gpkg;
pub use vector::gpkg_geom_to_geojson;
pub use wal::WalReader;
pub use wal::overlay_wal;
pub use writer::GeoPackageBuilder;

Modules§

btree
Pure Rust SQLite B-tree page traversal.
coverage
Tiled Gridded Coverage support for GeoPackage (OGC GeoPackage Extension §F.7).
data_columns
GeoPackage gpkg_data_columns extension reader.
error
Error types for oxigdal-gpkg
extensions
GeoPackage extensions registry (OGC 12-128r19 §F.4).
filter
SQL-like attribute WHERE filter with predicate pushdown for GeoPackage tables.
gpkg
GeoPackage schema layer.
incremental_mutation
Buffered-rewrite incremental mutation support for GeoPackage feature tables.
integrity
GeoPackage file-integrity validator (OGC 12-128r19 §1.1.3).
metadata
GeoPackage metadata structures.
multi_geom
Multiple-geometry-column support for GeoPackage feature tables.
related_tables
GeoPackage Related Tables Extension (GPKG-RTE).
rtree
GeoPackage R-tree spatial index shadow-table reader.
schema_constraints
GeoPackage gpkg_data_column_constraints extension parser + validator.
sqlite_reader
Pure Rust SQLite binary format reader.
sqlite_writer
Pure-Rust SQLite binary writer for GeoPackage output.
tile_matrix
GeoPackage tile matrix structures.
tile_pyramid
GeoPackage tile pyramid reader.
vector
GeoPackage vector feature table types.
wal
SQLite Write-Ahead Log (WAL) parser and page overlay.
writer
High-level GeoPackage writer — composes SQLite pages into a valid .gpkg file.