Do not force reprojection if no geometry properties are around
--------------------------------------------------------------
Key: GEOS-1223
URL: http://jira.codehaus.org/browse/GEOS-1223
Project: GeoServer
Issue Type: Bug
Components: WFS
Affects Versions: 1.5.1
Reporter: Andrea Aime
Assignee: Andrea Aime
Priority: Critical
Fix For: 1.5.2
Setup a data store so that the declared CRS is not equal to the native value (be it becuase it's missing, or because it's different), and then issue a WFS request that does not load any geomtric attribute. Currently the code throws an NPE exception:
Caused by: java.lang.NullPointerException
at org.geotools.data.crs.ForceCoordinateSystemFeatureResults.<init>(ForceCoordinateSystemFeatureResults.java:83)
at org.geotools.data.crs.ForceCoordinateSystemFeatureResults.<init>(ForceCoordinateSystemFeatureResults.java:73)
at org.vfny.geoserver.global.GeoServerFeatureSource.getFeatures(GeoServerFeatureSource.java:288)
at org.vfny.geoserver.wfs.responses.FeatureResponse.execute(FeatureResponse.java:305)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira