Skip to content

Conversation

@asinghvi17
Copy link
Member

The generated boilerplate in common.jl expects functions to use underscore-prefixed internal methods (e.g., _crosses, _overlaps) for trait-based dispatch, while the public API calls these internal methods. Updated both functions to follow this pattern, ensuring proper handling of Features, Extents, and table rows.

The generated boilerplate in `common.jl` expects functions to use
underscore-prefixed internal methods (e.g., `_crosses`, `_overlaps`)
for trait-based dispatch, while the public API calls these internal
methods. Updated both functions to follow this pattern, ensuring
proper handling of Features, Extents, and table rows.
Ensures that `crosses` and `overlaps` work correctly with:
- Features wrapping geometries
- NamedTuples with geometry fields
- Mixed combinations of Features and raw geometries

These tests verify that the underscore-prefixed internal methods
properly handle the boilerplate in `common.jl` for Feature unwrapping.
Adds tests to cover previously untested code paths:
- Line × Line overlaps (GI.LineTrait)
- MultiPolygon × MultiPolygon overlaps

These tests ensure the new `_overlaps` methods are properly exercised.
@asinghvi17 asinghvi17 requested a review from skygering November 9, 2025 02:51
@asinghvi17 asinghvi17 marked this pull request as ready for review November 9, 2025 02:55
@rafaqz rafaqz merged commit fdda925 into main Nov 9, 2025
8 of 10 checks passed
@rafaqz rafaqz deleted the claude/fix-geom-relations-functions-011CUqXLzgLiff1NSrSXCizQ branch November 9, 2025 03:50
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.

4 participants