Open igeofr opened 5 years ago
@igeofr Did you try to add this code in the python file? Did it work?
No, I didn't try because I rent a Lizmap server from you and I don't have the possibility to do the test.
Ah yes, it makes sense, sorry. I will try ;-)
Done : https://github.com/3liz/qgis-wfsOutputExtension/commit/55912fdb040b278ca6fe6d30c4038a1c4c19eb28
The GPX has some restrictions on field names.
That's great. Thanks
According to a unittest added, GPX is failing : https://travis-ci.org/github/3liz/qgis-wfsOutputExtension/jobs/734199354#L246
@igeofr Is the GPX working well for you ?
I have just renabled GPX tests in 51c9f1c72a401388578ef99d29346db915ad943c
Yes, it works perfectly for points and lines. For polygons an empty file is generated. Is it possible to deactivate this format for polygonal layers?
Indeed, it's correct. I will have some work on WfsOutputExtension in the coming week, I will do that.
@rldhont, @igeofr I tried to deactivate this export for polygons.
For now the, the list of format generated by this QGIS Server plugin is inserted at the root WFS service (global for all layers provided by the WFS Server) and is not configured per layer. It seems possible according to the specs
<FeatureTypeList>
<FeatureType>
<Name xmlns:gn="urn:x-inspire:specification:gmlas:GeographicalNames:3.0">gn:NamedPlace</Name>
<Title>gn:NamedPlace</Title>
<DefaultCRS>urn:ogc:def:crs:EPSG::4326</DefaultCRS>
<OutputFormats>
<Format>application/xml; subtype="gml/3.2.1"</Format>
</OutputFormats>
http://opengeospatial.github.io/e-learning/wfs/text/operations.html#response
But then I'm not sure this will be used by LWC. So I will let this feature request open and I have renamed it.
Hello, It would be interesting to add the gpx format to the list in order to easily load the data into a GPS.
Thanks