Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

ST_EqualsIdentical returns false for a stored 2D geometry and the same geometry parsed from WKT

Chiusa
#3,458 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Una pull request collegata è già stata integrata.

  • #3459 di @jiayuasu — integrata

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
java, sql
Ambito
data

Direzione di ricerca

Start where ST_EqualsIdentical compares coordinate sequences, and where the geometry serializer reads a stored 2D geometry back as XY. Compare that with the default JTS coordinate sequence that WKT parsing produces, which carries a NaN Z ordinate. Reproduce with a stored POINT (1 2) against ST_GeomFromWKT('POINT (1 2)'), which should return true. Work is already under way in pull request #3459, so check it before starting.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

ST_EqualsIdentical compares two coordinate sequences only when they have the same in-memory dimension. WKT parsing produces JTS default coordinate sequences, which hold ordinary 2D coordinates with a NaN Z ordinate (dimension 3), while the geometry serializer reads a stored 2D geometry back as declared XY (dimension 2). So a 2D geometry from a stored geometry column is never identical to the same geometry built in the query:

-- t.geom stores POINT (1 2)
SELECT ST_EqualsIdentical(geom, ST_GeomFromWKT('POINT (1 2)')) FROM t  -- false

The same happens for line strings, polygons and multi geometries. Comparing two stored columns, or two parsed geometries, is not affected.

Lingua principale
Java
Stelle
2.4k
Fork
787
Merge medio
1g 21h
PR unite (30g)
56

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/sedona

Tutte le issue di apache/sedona

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.