Skip to content

v3.0.0-beta.2

Pre-release
Pre-release

Choose a tag to compare

@trasch trasch released this 20 Oct 14:44
· 48 commits to main since this release
c09d5e4

GISTools 3.0.0-beta.2

Second beta of the 3.0 release. Main changes since beta.1:

OGC/PostGIS containment

  • contains is now interior-only (ST_Contains); new covers (ST_Covers) and
    locate (interior/boundary/exterior) APIs.
  • Hole boundaries now behave like outer boundaries — fixes inverted enclave and
    hole results.
  • Geometry-level contains/covers are segment-aware instead of vertex-only.
  • Robust point-in-ring predicate fixes points exactly on an edge.

Parsing, Codable and JSON

  • Codable preserves booleans, nested arrays and null.
  • asJsonData() emits shortest round-trip numbers and stable sorted keys.
  • New GeoJsonParser with lenient/strict modes and JSON Pointer issue paths.
  • Supports unlocated features ("geometry": null).
  • Typed GeoJSON decoding: ~0.23 s for the 640k-vertex benchmark (was ~1 s).

Breaking changes

  • Coordinate3D(x:y:) now requires projection:; use
    Coordinate3D.epsg3857(x:y:), .epsg4978(...) or .noSRID(...).
  • contains is interior-only; use covers for boundary-inclusive checks.
  • Feature.geometry is optional; WKB/WKT return nil for unlocated features.

Other

  • Antimeridian-aware overlay operations, including raw EPSG:3857 polygons.
  • Generic benchmark suite (swift run -c release Benchmarks).

See CHANGELOG.md for the full migration notes.