Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable GPX export for polygons #4

Open
igeofr opened this issue Aug 27, 2019 · 10 comments
Open

Disable GPX export for polygons #4

igeofr opened this issue Aug 27, 2019 · 10 comments
Assignees

Comments

@igeofr
Copy link

igeofr commented Aug 27, 2019

Hello,
It would be interesting to add the gpx format to the list in order to easily load the data into a GPS.

'gpx':{
        'contentType': 'application/gpx+xml',
        'filenameExt': 'gpx',
        'forceCRS': 'EPSG:4326',
        'ogrProvider': 'GPX',
        'ogrDatasourceOptions':None,
        'zip': False,
        'extToZip': []
    },

Thanks

@Gustry
Copy link
Member

Gustry commented Mar 20, 2020

@igeofr Did you try to add this code in the python file? Did it work?

@igeofr
Copy link
Author

igeofr commented Mar 20, 2020

No, I didn't try because I rent a Lizmap server from you and I don't have the possibility to do the test.

@Gustry
Copy link
Member

Gustry commented Mar 20, 2020

Ah yes, it makes sense, sorry. I will try ;-)

@Gustry
Copy link
Member

Gustry commented Mar 20, 2020

Done : 55912fd

The GPX has some restrictions on field names.

@Gustry Gustry closed this as completed Mar 20, 2020
@igeofr
Copy link
Author

igeofr commented Mar 20, 2020

That's great. Thanks

@Gustry
Copy link
Member

Gustry commented Oct 9, 2020

According to a unittest added, GPX is failing : https://travis-ci.org/github/3liz/qgis-wfsOutputExtension/jobs/734199354#L246

@Gustry Gustry reopened this Oct 9, 2020
@Gustry
Copy link
Member

Gustry commented Dec 18, 2020

@igeofr Is the GPX working well for you ?

I have just renabled GPX tests in 51c9f1c

@Gustry Gustry closed this as completed Dec 18, 2020
@igeofr
Copy link
Author

igeofr commented Jan 4, 2021

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?

@Gustry
Copy link
Member

Gustry commented Jan 5, 2021

Indeed, it's correct.
I will have some work on WfsOutputExtension in the coming week, I will do that.

@Gustry Gustry reopened this Jan 5, 2021
@Gustry Gustry self-assigned this Jan 5, 2021
@Gustry Gustry changed the title Add the .gpx format Disable GPX export for polygons Jan 7, 2021
@Gustry
Copy link
Member

Gustry commented Jan 7, 2021

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants