Repository navigation
v3.0.0
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:
containsis interior-only,coversincludes
boundaries, andlocatereturns interior/boundary/exterior. Geometry-level
predicates are segment-aware and antimeridian-aware. - True validity:
isValidnow means topological validity;
isStructurallyValidkeeps the previous structural check, and
isValidReason/isSimpleare new. - Unlocated features:
Feature.geometryis optional, so
"geometry": nullround-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:
BoundingBoxis 64 instead of 120 bytes and no longer
stores the linear-referencemvalue. - 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.