[Geoserver-devel] [jira] Created: (GEOS-2732) SHAPE-ZIP output format fails when the input data source does not have the geometry as the first attribute

SHAPE-ZIP output format fails when the input data source does not have the geometry as the first attribute
----------------------------------------------------------------------------------------------------------

                 Key: GEOS-2732
                 URL: http://jira.codehaus.org/browse/GEOS-2732
             Project: GeoServer
          Issue Type: Bug
          Components: WFS
    Affects Versions: 1.7.3
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 1.7.4

A mismatch occurrs between attributes positions in the input data source and the output data, and the following exception is thrown:

{code}
java.lang.ClassCastException: java.lang.String cannot be cast to com.vividsoluti
ons.jts.geom.Geometry
        at org.geotools.data.shapefile.ShapefileFeatureWriter.write(ShapefileFea
tureWriter.java:349)
        at org.geotools.data.shapefile.ShapefileFeatureWriter.close(ShapefileFea
tureWriter.java:218)
        at org.geotools.data.InProcessLockingManager$1.close(InProcessLockingMan
ager.java:348)
        at org.geotools.data.AbstractFeatureStore.addFeatures(AbstractFeatureSto
re.java:276)
        at org.geoserver.wfs.response.ShapeZipOutputFormat.writeCollectionToShap
efile(ShapeZipOutputFormat.java:196)
        at org.geoserver.wfs.response.ShapeZipOutputFormat.write(ShapeZipOutputF
ormat.java:156)
{code}

--
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