WFS SHAPE-ZIP format fails when geometry attribute name is different than "the_geom"
------------------------------------------------------------------------------------
Key: GEOS-2923
URL: http://jira.codehaus.org/browse/GEOS-2923
Project: GeoServer
Issue Type: Bug
Affects Versions: 1.7.x
Environment: PostGIS data source
Reporter: Etienne Dube
Assignee: Andrea Aime
Priority: Minor
If the name of a single geometry attribute is different than "the_geom", the WFS SHAPE-ZIP output format fails in the writeCollectionToShapefile(FeatureCollection, File, Charset) method (a NullPointerException is thrown along the way from ShapefileFeatureWriter.java:353). It seems to occurs because the RetypingFeatureCollection handles different positions / types of attributes, but not a change of name in the attributes (geometry attribute name is always the_geom in the ShapeFileDataSource).
The (note plural) writeCollectionToShapefiles(FeatureCollection<SimpleFeatureType, SimpleFeature>, File, Charset) method doesn't seem to suffer from this problem (see comment at line 237). Didn't test it though, since the PostGIS geometry column is recognized as a having a single geometry type (e.g. MultiPolygon).
--
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