Re: [Qgis-user] QGIS SERVER 3.4.2 - download WFS GetFeature result as Shapefile

2019-01-16 Thread umbertofilippo
I ended up using ogr2ogr (which is already shipped with QGIS) and with which
I was able to develop a Download button that can export the WFS to
Shapefile, CSV, DXF, and KML.
I think this is the best solution (although I had to write a little PHP
script in order to do that) because it's basically independent of the type
of GIS server used (should work with WFS generated with QGIS but also
Mapserver amn Geoserver).



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS SERVER 3.4.2 - download WFS GetFeature result as Shapefile

2018-12-13 Thread umbertofilippo
Alessandro Pasotti-2 wrote
> On Thu, Dec 13, 2018 at 3:02 PM umbertofilippo 

> umbertofilippo@

> 
> wrote:
> 
>> umbertofilippo wrote
>> > Is it possible to do it somewhere in the server
>> > configurations, or should I implement it myself?
>>
>> Replying myself with some findings.
>> I guess, if it is not feasible QGIS Server side, I can implement it with
>> ogr2ogr, or maybe use something already done (like
>> https://github.com/3liz/qgis-wfsOutputExtension, although this probably
>> won't work for version 3.x?).
>>
>> Any hints is more than welcome!
>>
> 
> 
> That's he way to go: a server plugin will do just fine.
> 
> If it doesn't work for 3.x it shouldn't be hard to port it.
> 
> -- 
> Alessandro Pasotti
> w3:   www.itopen.it
> 
> ___
> Qgis-user mailing list

> Qgis-user@.osgeo

> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Thanks Alessandro,

another thing I found which look really promising is this one:
https://gis.stackexchange.com/a/181598/9518
https://www.gdal.org/drv_wfs.html

Basically, ogr2ogr can connect to a OGC WFS server and export direclty into
an output like shapefile.
Will probably test one of the two options and will report back my results if
I'm successful.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS SERVER 3.4.2 - download WFS GetFeature result as Shapefile

2018-12-13 Thread umbertofilippo
umbertofilippo wrote
> Is it possible to do it somewhere in the server
> configurations, or should I implement it myself?

Replying myself with some findings.
I guess, if it is not feasible QGIS Server side, I can implement it with
ogr2ogr, or maybe use something already done (like
https://github.com/3liz/qgis-wfsOutputExtension, although this probably
won't work for version 3.x?).

Any hints is more than welcome!



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] QGIS SERVER 3.4.2 - download WFS GetFeature result as Shapefile

2018-12-13 Thread umbertofilippo
Hello All,

I am trying to find a way to download the features from a WFS coming from a
QGIS SERVER I own as Shapefile format.

The Capabilities are these:
https://www.wondermap.it/cgi-bin/qgis_mapserv.fcgi?=/home/ubuntu/qgis/projects/Demo_sci_WMS/demo_sci.qgs=WFS=1.1.0=GetCapabilities.

From those, I can see the "outputFormat" of the "GetFeature" request looks
like this:

text/xml;
subtype=gml/2.1.2text/xml;
subtype=gml/3.1.1application/vnd.geo+json

, so I guess I cannot do something like "=Shapefile".
Is there a way I can retrieve my data as Shapefile (most likely downloading
it as a zipped file)? Is it possible to do it somewhere in the server
configurations, or should I implement it myself?

Any help would be very appreciated. Thanks!

Umberto



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user