PreparedGeometry: add Crosses method
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start by reading the PreparedGeometry implementation added in #699 and trace its Crosses path through RelateMatrix and RelateNG. Compare the two possible approaches in the issue, including the existing xmltest failure for EqualsTopo on degenerate geometries. Done means prepared Crosses handles geometry collections without changing the established EqualsTopo behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
PreparedGeometry is missing the Crosses predicate. All other spatial predicates are supported (Intersects, Contains, ContainsProperly, CoveredBy, Covers, Disjoint, Overlaps, Touches, Within).
PreparedGeometry was added in #699.
Background
The underlying JTS prepared geometry implementation delegates Crosses to baseGeom.Crosses(), which calls RelateMatrix() → geom_GeometryRelate_Relate(). When the global isRelateNG flag is false (the default), this code path calls CheckNotGeometryCollection and panics for geometry collection inputs.
The non-prepared geom.Crosses works fine because it goes through Relate() → jtsRelateNG(), which always uses RelateNG and handles geometry collections.
Switching the global isRelateNG flag to true fixes Crosses but introduces a behavioral difference in EqualsTopo for degenerate geometries (e.g. POINT(110 200) vs LINESTRING(110 200, 110 200)), causing an existing xmltest to fail.
Possible approaches
- Set the global
isRelateNGflag and investigate/fix theEqualsTopodiscrepancy for degenerate geometries. - Have the
geompackage call RelateNG directly forCrosses(bypassing the global flag), though this means modifying the JTS transliteration layer.
- Lingua principale
- Go
- Stelle
- 176
- Fork
- 27
- Merge medio
- 1g 14h
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di peterstace/simplefeatures
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
peterstace/simplefeatures#726 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
peterstace/simplefeatures#725 ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
peterstace/simplefeatures#724 ·
-
cleanup
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
peterstace/simplefeatures#722 ·
-
bug
Difficoltà 3/5 Mezza giornata Idoneità per principianti 45/100
peterstace/simplefeatures#721 ·
Tutte le issue di peterstace/simplefeatures
Issue simili
-
area: import bug go good first issue priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
fukubie/StockLlama#69 ·
-
enhancement help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
cloverworks-hq/rumpty-cli#95 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
pulseaiclub/phi#615 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno