[mapserver-users] WFS export as GeoJSON or CSV

Lime, Steve D (MNIT) steve.lime at state.mn.us
Fri Sep 22 14:48:57 PDT 2017


Are these all exports via OGR output formats? One idea might be to try the conversion at the command line (take MapServer out of the equation) and view the result into QGIS. Since you're grabbing whole feature classes that seems doable. That would help determining where the issue lies - could be QGIS too...

Steve

-----Original Message-----
From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of pe_lord
Sent: Wednesday, September 20, 2017 3:16 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] WFS export as GeoJSON or CSV

I work with Mapserver 7.0.3 to extract some datasets in various format (i.e,
csv, geojson, shp...).

Here my service. 
https://ws.mapserver.transports.gouv.qc.ca/swtq?service=wfs&request=getcapabilities
Here the URL I use to extract data:

https://ws.mapserver.transports.gouv.qc.ca/swtq?service=wfs&version=2.0.0&request=getfeature&typename=ms:bgr_v_dirct_terrt_geomt_act&outputformat=geojson
https://ws.mapserver.transports.gouv.qc.ca/swtq?service=wfs&version=2.0.0&request=getfeature&typename=ms:bgr_v_dirct_terrt_geomt_act&outputformat=csv
https://ws.mapserver.transports.gouv.qc.ca/swtq?service=wfs&version=2.0.0&request=getfeature&typename=ms:bgr_v_dirct_terrt_geomt_act&outputformat=shp

Everything is fine with exportation as shp.
But for CSV and GeoJSON (wkt?), my largest geometry (~79074 vertices) is
downloaded but is not spatially selectable into qgis. And when I zoom, the
geometry disappear?

The problem occur on the most northern geometry/feature.

I've tried to find which version of Gdal Mapserver 7.0.3 use but I didn't
find.




--
Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list