An exception is thrown when I try to execute a spatial query on an SDE feature source which has no features. com.esri.sde.sdk.client.SeException: at com.esri.sde.sdk.client.SeShape.f(Unknown Source) at com.esri.sde.sdk.client.SeShape.generateRectangle(Unknown Source) at org.geotools.arcsde.filter.GeometryEncoderSDE.addSpatialFilter(GeometryEncoderSDE.java:260) ... 56 more The problem is located in class: org.geotools.arcsde.filter.GeometryEncoderSDE at line: 260
extent.generateRectangle(seExtent);
When The layer is empty, the seExtent given to the method looks like this: (9.999E35,9.999E35,-9.999E35,-9.999E35). It can be viewed on the attached print screen. Maybe it would be better if such situation was handled inside the ESRI plugin because it seems like ESRI does not tolerate such input data. |