geopackage-core 0.1.0

No-IO core for the OGC GeoPackage format: GeoPackage Binary (GPB) codec, table DDL, RTree trigger definitions, and validation rules
Documentation

No-IO core of the OGC GeoPackage format.

This crate contains the parts of the GeoPackage 1.4 specification that can be expressed without a database connection:

  • [gpb]: the GeoPackage Binary (GPB) geometry blob header codec
  • [types]: column and geometry type vocabulary (spec Table 1, Annex G)
  • [datetime]: DATE/DATETIME text form parsing (strict and lenient)
  • [ddl]: normative CREATE TABLE SQL and required gpkg_spatial_ref_sys seed rows
  • [srs]: vendored EPSG WKT1 subset for gpkg_spatial_ref_sys seeding
  • [triggers]: RTree spatial index virtual table and trigger SQL (version-aware)
  • [version]: application_id / user_version handling
  • [ident]: SQL identifier quoting

It is deliberately dependency-light so that other implementations (e.g. geozero) can share it. Database I/O lives in the geopackage crate.

SQL text is reproduced verbatim from the spec's normative annexes (Annex C "Table Definition SQL", Annex F.3 "R-tree Spatial Indexes").