Hi Jody, that has not been a problem for years now, the output format fans them out into one shapefile per geometric type. The ticket is so old that I had troubles finding it, and describes only part of what the code can actually do (deal with incompatible geometry types too): https://osgeo-org.atlassian.net/browse/GEOS-2201
See also the relevant test here: https://github.com/geoserver/geoserver/blob/e325806e05134dc967985797a928c72b6881ca35/src/wfs/src/test/java/org/geoserver/wfs/response/ShapeZipTest.java#L204 Cheers Andrea Il gio 20 feb 2020, 23:39 Jody Garnett <[email protected]> ha scritto: > Is the geometry column of a type supported by shapefile? Some systems > (example oracle) can be configured to work with a generic geometry, and > thus we do not know what kind of shapefile to create when being asked to > save out a shapefile. > > Shapefiles must all be of the same type, rather than of mixed types. > -- > Jody Garnett > > > On Tue, 18 Feb 2020 at 20:08, Tobias Schulmann <[email protected]> > wrote: > >> On Tue, 2020-02-18 at 11:07 +0100, Andrea Aime wrote: >> >> Can you share the full stack trace? >> >> Sure, here's the entire trace: >> https://gist.github.com/GeoTob/e56dd23ee25438023d9424e4e1c3d04b >> >> Is the layer in question a simple feature one, and does it actually have >> a geometry column? >> >> The layer does have a geometry column: >> https://gist.github.com/GeoTob/5ef10644c0336cb686c3ac4e325afde3 >> >> >> Thanks for the help ! >> >> Cheers >> Andrea >> >> On Mon, Feb 17, 2020 at 11:33 PM Tobias Schulmann <[email protected]> >> wrote: >> >> Hi >> >> When trying to generate shape-zip output for layers in PostGIS(JNDI) and >> PostGIS stores, GeoServer reports the following error: >> >> java.io.IOException: java.io.IOException: Error in shapefile schema. It >> is possible you don't have a geometry set in the output. >> at >> org.geotools.data.shapefile.ShapefileDumper.dump(ShapefileDumper.java:302) >> at >> org.geotools.data.shapefile.ShapefileDumper.dump(ShapefileDumper.java:215) >> >> >> The documentation on SHAPE-ZIP >> https://docs.geoserver.org/latest/en/user/services/wfs/outputformats.html#shapefile-output >> doesn't seem to mention anything useful. Is this a configuration problem on >> our end or an issue in GeoServer? >> >> Thanks >> Tobias >> _______________________________________________ >> Geoserver-users mailing list >> >> Please make sure you read the following two resources before posting to >> this list: >> - Earning your support instead of buying it, but Ian Turton: >> http://www.ianturton.com/talks/foss4g.html#/ >> - The GeoServer user list posting guidelines: >> http://geoserver.org/comm/userlist-guidelines.html >> >> If you want to request a feature or an improvement, also see this: >> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer >> >> >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geoserver-users >> >> >> >> _______________________________________________ >> Geoserver-users mailing list >> >> Please make sure you read the following two resources before posting to >> this list: >> - Earning your support instead of buying it, but Ian Turton: >> http://www.ianturton.com/talks/foss4g.html#/ >> - The GeoServer user list posting guidelines: >> http://geoserver.org/comm/userlist-guidelines.html >> >> If you want to request a feature or an improvement, also see this: >> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer >> >> >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geoserver-users >> > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to > this list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users >
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
