You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ST_IsPolygonCW and ST_IsPolygonCCW mishandle empty polygonal geometries #3171
ST_IsPolygonCW and ST_IsPolygonCCW should handle empty polygonal geometries without throwing. Both predicates should return true when the input has no rings to violate the requested orientation, consistent with the documented PostGIS semantics:
The first query returns (true, false). The second query fails with an error whose cause is:
java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
at org.locationtech.jts.geom.GeometryCollection.getGeometryN(...)
at org.apache.sedona.common.Functions.isPolygonCW(...)
The same unconditional first-element access exists in isPolygonCCW.
Settings
Sedona version = 1.9.1-SNAPSHOT
Apache Spark version = 3.4
Apache Flink version = The affected implementation is shared by all engines
Activity
[apacheGH-3171] Match PostGIS polygon orientation semantics
[apacheGH-3171] Limit polygon orientation fix to empty geometries
[GH-3171][GH-3172] Fix empty polygon orientation and GeoSeries skew f…