Exporting Shapefiles from featuretypes that
--------------------------------------------
Key: GEOS-2201
URL: http://jira.codehaus.org/browse/GEOS-2201
Project: GeoServer
Issue Type: Bug
Components: WFS
Affects Versions: 1.7.0-RC2, 1.6.4
Environment: Tested on multiple installations, but all windows-based.
Reporter: Björn Harrtell
Assignee: Andrea Aime
When requesting data with WFS and SHAPE-ZIP outputFormat from a featureType
with heterogeneous (mixed-type) geometry types (but that should still be
compatible with shapefiles) I get the following error when I try to get data
including both polygon and multipolygons:
<?xml version="1.0" ?>
<ServiceExceptionReport
version="1.2.0"
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc
http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">
<ServiceException>
org.geotools.data.DataSourceException: Cannot create a shapefile whose
geometry type is class com.vividsolutions.jts.geom.Geometry
Cannot create a shapefile whose geometry type is class
com.vividsolutions.jts.geom.Geometry
</ServiceException></ServiceExceptionReport>
With "should still be compatible with shapefiles" I mean mixed geometries like
points and multipoints in the same collection (same for multilines and
multipolygons respectively but *NOT* mixed as points and lines in the same
layer, which I believe is according to shapefile spec.
This was discovered when trying to replace FME as a shapefile exporter from
ArcSDE with geoserver and postgis as the converted ArcSDE data was mixed as in
the case described, so if I'm mistaken about shapefiles allowing mixed at all
then FME must be converting the features before exporting which is a nice
workaround in my opinion.
--
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
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel