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
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel