Skip to content

Add PreparedGeometry for efficient repeated spatial predicate evaluation#699

Merged
peterstace merged 1 commit intomasterfrom
prepared_geom
Feb 13, 2026
Merged

Add PreparedGeometry for efficient repeated spatial predicate evaluation#699
peterstace merged 1 commit intomasterfrom
prepared_geom

Conversation

@peterstace
Copy link
Owner

@peterstace peterstace commented Feb 13, 2026

Description

Port JTS prepared geometry infrastructure to Go. A PreparedGeometry caches spatial indices so that repeated predicate evaluations (Intersects, Contains, ContainsProperly, CoveredBy, Covers, Crosses, Disjoint, Overlaps, Touches, Within) against different test geometries are fast. This is useful when a single geometry needs to be tested against many others.

Check List

Have you:

  • Added unit tests? Yes

  • Add cmprefimpl tests? (if appropriate?) N/A

  • Updated release notes? (if appropriate?) Yes

  • Updated the README.md (if new functionality is added?)

Related Issue

@peterstace peterstace self-assigned this Feb 13, 2026
Port JTS prepared geometry infrastructure to Go. A PreparedGeometry
caches spatial indices so that repeated predicate evaluations
(Intersects, Contains, ContainsProperly, CoveredBy, Covers, Crosses,
Disjoint, Overlaps, Touches, Within) against different test geometries
are fast. This is useful when a single geometry needs to be tested
against many others.
@peterstace peterstace merged commit df137c1 into master Feb 13, 2026
1 check passed
@peterstace peterstace deleted the prepared_geom branch February 13, 2026 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant