Conversation
rafaqz
approved these changes
May 2, 2025
Member
Author
|
Ugh it's not this simple...needs extents too. We should just call tuples and normalize everything when pushing to the array. |
Extend CRS handling from intersection to union and difference operations. Use `mutual_crs` to preserve coordinate reference system information when creating result polygons in non-crossing cases, hole handling, and multipolygon operations. Fixes type mismatches when clipping geometries with different CRS configurations.
30bf6b0 to
de4679e
Compare
…g conversion Implements trait-based dispatch in `_linearring` helper to convert LineString geometries (e.g., from ArchGDAL) to LinearRing while preserving CRS metadata. This ensures compatibility with all GeoInterface-compatible geometry types. The function uses trait dispatch pattern: - Returns LinearRing geometries as-is - Converts LineString to LinearRing with CRS preservation - Includes concrete type specializations for GI wrappers (optimization) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Adds missing CRS parameter propagation in `intersection.jl` to match the pattern already used in union and difference operations. This fixes type conversion errors when using ArchGDAL geometries in intersection operations. Changes: - Pass `crs` parameter to `_trace_polynodes()` call (line 87) - Wrap `tuples()` results with `_linearring()` in non-crossing cases (lines 91, 93) With this fix, all 72 intersection and union operations now succeed across GeoInterface, ArchGDAL, and LibGEOS geometry combinations. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
rafaqz
requested changes
Nov 9, 2025
asinghvi17
commented
Nov 10, 2025
Address review feedback: put isnothing checks first since the compiler will optimize them away, making the equality check right above the error more clear. Also cache GI.crs calls and update docstring. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
rafaqz
approved these changes
Dec 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Finally, this propagates CRS through polygon clipping.