WFS export as GeoJSON or CSV

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

WFS export as GeoJSON or CSV

pe_lord
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
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: WFS export as GeoJSON or CSV

Lime, Steve D (MNIT)
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:[hidden email]] On Behalf Of pe_lord
Sent: Wednesday, September 20, 2017 3:16 PM
To: [hidden email]
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
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: WFS export as GeoJSON or CSV

pe_lord
I've found.

I forgot to add this parameter to my layer.

http://mapserver.gis.umn.edu/output/ogr_output.html#geometry-types-supported

My output had mixed feature strored in my geometry column.





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