Stefano Pezzi ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5de77fa72fd6260cf27d0ecd
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiNGE5M2ExMzcxNmViNGU5MWI4Mjk1ZjkzNTlmMzQwYWEiLCJwIjoiaiJ9
 ) / Bug ( 
https://osgeo-org.atlassian.net/browse/GEOS-10290?atlOrigin=eyJpIjoiNGE5M2ExMzcxNmViNGU5MWI4Mjk1ZjkzNTlmMzQwYWEiLCJwIjoiaiJ9
 ) GEOS-10290 ( 
https://osgeo-org.atlassian.net/browse/GEOS-10290?atlOrigin=eyJpIjoiNGE5M2ExMzcxNmViNGU5MWI4Mjk1ZjkzNTlmMzQwYWEiLCJwIjoiaiJ9
 ) WFS GetFeature raises error when querying layers built on 3/4 dimensional 
shapefiles ( 
https://osgeo-org.atlassian.net/browse/GEOS-10290?atlOrigin=eyJpIjoiNGE5M2ExMzcxNmViNGU5MWI4Mjk1ZjkzNTlmMzQwYWEiLCJwIjoiaiJ9
 )

Issue Type: Bug Affects Versions: 2.17.5, 2.18.5, 2.19.3, 2.20.0 Assignee: 
Unassigned Attachments: ticketGEOS.zip Created: 28/Oct/21 3:45 PM Environment:

Windows 10, Tomcat 9.0.54, Java jdk-11.0.12.7-hotspot (Adoptium by Eclipse 
Foundation)

Priority: Medium Reporter: Stefano Pezzi ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5de77fa72fd6260cf27d0ecd
 )

The WFS's request GetFeature fails when querying layer defined on shapefile 
that have more than 2 dimensions.

The XYZM and XYZ test cases give the same error "Invalid ordinate index: 3."
Excerpt from logfile:
_java.lang.IllegalArgumentException: Invalid ordinate index: 3
at org.locationtech.jts.geom.Coordinate.setM(Coordinate.java:218)
at 
org.locationtech.jts.geom.impl.PackedCoordinateSequence.getCoordinate(PackedCoordinateSequence.java:116)
at 
org.locationtech.jts.operation.predicate.RectangleIntersectsSegmentVisitor.checkIntersectionWithSegments(RectangleIntersects.java:327)
at 
org.locationtech.jts.operation.predicate.RectangleIntersectsSegmentVisitor.checkIntersectionWithLineStrings(RectangleIntersects.java:317)
at 
org.locationtech.jts.operation.predicate.RectangleIntersectsSegmentVisitor.visit(RectangleIntersects.java:310)
at 
org.locationtech.jts.geom.util.ShortCircuitedGeometryVisitor.applyTo(ShortCircuitedGeometryVisitor.java:35)
at 
org.locationtech.jts.operation.predicate.RectangleIntersects.intersects(RectangleIntersects.java:110)
at 
org.locationtech.jts.operation.predicate.RectangleIntersects.intersects(RectangleIntersects.java:58)
at org.locationtech.jts.geom.Geometry.intersects(Geometry.java:754)
at org.geotools.filter.spatial.BBOXImpl.basicEvaluate(BBOXImpl.java:118)
at org.geotools.filter.spatial.BBOXImpl.evaluateInternal(BBOXImpl.java:107)_

The XYM test case gives an "Index 69 out of bounds for length 69"
Excerpt from logfile:
_java.lang.ArrayIndexOutOfBoundsException: Index 69 out of bounds for length 69
at 
org.geotools.geometry.jts.LiteCoordinateSequence.setOrdinate(LiteCoordinateSequence.java:224)
at 
org.geotools.data.shapefile.shp.PolygonHandler.readCoordinates(PolygonHandler.java:315)
at org.geotools.data.shapefile.shp.PolygonHandler.read(PolygonHandler.java:142)
at 
org.geotools.data.shapefile.shp.ShapefileReader$Record.shape(ShapefileReader.java:114)
at 
org.geotools.data.shapefile.ShapefileFeatureReader.getGeometry(ShapefileFeatureReader.java:239)
at 
org.geotools.data.shapefile.IndexedShapefileFeatureReader.hasNext(IndexedShapefileFeatureReader.java:86)
at org.geotools.data.ReTypeFeatureReader.hasNext(ReTypeFeatureReader.java:191)
at org.geotools.data.MaxFeatureReader.hasNext(MaxFeatureReader.java:82)_

WMS's GetMap and GetFeatureInfo work fine, but we had some problems with simple 
WPS's processes that are probably linked to the same issue.

Attached are 4 shapefile with MultiPolygon, MultiPolygonZ, MultiPolygonM and 
MultiPolygonZM geometries respectively and a text file with the CURLed WFS 
GetFeatures. ticketGEOS.zip ( 
https://osgeo-org.atlassian.net/secure/attachment/33801/33801_ticketGEOS.zip )

( 
https://osgeo-org.atlassian.net/browse/GEOS-10290#add-comment?atlOrigin=eyJpIjoiNGE5M2ExMzcxNmViNGU5MWI4Mjk1ZjkzNTlmMzQwYWEiLCJwIjoiaiJ9
 ) Add Comment ( 
https://osgeo-org.atlassian.net/browse/GEOS-10290#add-comment?atlOrigin=eyJpIjoiNGE5M2ExMzcxNmViNGU5MWI4Mjk1ZjkzNTlmMzQwYWEiLCJwIjoiaiJ9
 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( 
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
 ) or iOS ( 
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100183- 
sha1:4a12dee )
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to