[mapserver-users] WFS outputformat zipped geojson(s)?

pe_lord pe_lord at protonmail.com
Fri Feb 15 08:01:37 PST 2019


Hi

I try to output many wfs layers (typenames) to a single zipped output.

This is working properly for zipped shapefiles. 

...?service=wfs&version=2.0.0&request=getfeature&typename=A,B&outputformat=SHP

	OUTPUTFORMAT
		NAME "SHP"
		DRIVER "OGR/ESRI Shapefile"
		FORMATOPTION "STORAGE=filesystem"
		FORMATOPTION "FORM=zip"
		FORMATOPTION "FILENAME=result.zip"
	END
	OUTPUTFORMAT
		NAME "geojson"
		DRIVER "OGR/GEOJSON"
		FORMATOPTION "LCO:COORDINATE_PRECISION=15"
		FORMATOPTION "LCO:WRITE_BBOX=YES"
		FORMATOPTION "STORAGE=filesystem"
		FORMATOPTION "FORM=zip"
		FORMATOPTION "FILENAME=result.geojson.zip"
	END

For "Zipped" geojson
...?service=wfs&version=2.0.0&request=getfeature&typename=A,B&outputformat=geojson

I get :

General error message. 
OGR OGR_DS_CreateLayer failed for layer 'B' with driver 'GEOJSON'.

Does somebody already create zipped geojson?






--
Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html


More information about the mapserver-users mailing list