Skip to content

v3.0.0

Choose a tag to compare

@trasch trasch released this 30 Oct 09:19
· 5 commits to main since this release
77edcfd

gis-tools 3.0.0

gis-tools 3.0 aligns the core library and the companion format packages on a
single 3.0.0 version, and brings the geometry APIs in line with OGC/PostGIS
and RFC 7946.

Highlights

  • OGC/PostGIS predicates: contains is interior-only, covers includes
    boundaries, and locate returns interior/boundary/exterior. Geometry-level
    predicates are segment-aware and antimeridian-aware.
  • True validity: isValid now means topological validity;
    isStructurallyValid keeps the previous structural check, and
    isValidReason / isSimple are new.
  • Unlocated features: Feature.geometry is optional, so
    "geometry": null round-trips with IDs, properties and foreign members.
  • Explicit projections: Coordinate3D(x:y:z:) requires a projection; the
    implicit EPSG:3857 default is gone.
  • Smaller values: BoundingBox is 64 instead of 120 bytes and no longer
    stores the linear-reference m value.
  • Graph API is opt-in behind EnableGraphAPI; ALT landmark and reusable
    routing indexes make repeated routing queries much faster.
  • New and improved formats: WKB/WKT/TWKB, antimeridian overlay support,
    cross-projection line clipping fixes and many projection corrections.
  • Documentation: new DocC catalog with a 3.0 migration guide and
    companion-package guides, benchmark baselines, and an API-compatibility
    check in CI.

Breaking changes

The 3.0 migration guide
covers every breaking change, including the removed 2.x aliases, the new
mask/clip return types, containment semantics, bounding-box storage and
unit handling.

Companion packages

gis-tools-csv, gis-tools-fit, gis-tools-gpx, gis-tools-geopackage and
gis-tools-shapefile follow the same 3.0.0 versioning, as do mvt-tools and
mvt-postgis.

Requires Swift 6.1 or newer.