Reprojection does not occur during rendering if shapefiles do not have a .prj file associated
---------------------------------------------------------------------------------------------
Key: GEOS-847
URL: http://jira.codehaus.org/browse/GEOS-847
Project: GeoServer
Issue Type: Bug
Reporter: Andrea Aime
Assigned To: Andrea Aime
Take a shapefile in some projected CRS, and leave it without a .prj file.
Declare the SRS in Geoserver, try to preview it.
The preview will be empty because Geoserver does not force a CRS onto the
data, and as a result the geometry type does not have the CRS information attacched.
The issue here is that StreamingRenderer does a:
((GeometryAttributeType) f.getFeatureType().getDefaultGeometry()).getCoordinateSystem();
but the GeoserverFeatureSource does not do anything to alter the feature type attached to
features by the original data store, whilst it has a schema field with the proper crs.
We would need a feature type mapper so that features do carry the fixed geometry attribute or,
since we're reading, we should call getView() instead of getFeatureSource on the original
data store, so that we can force another crs using the appropriate Query parameters (forced
crs do work only on views).
--
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