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

Problem with WFS in Pygeoapi #46

Closed
PB-GNM opened this issue Sep 21, 2021 · 5 comments
Closed

Problem with WFS in Pygeoapi #46

PB-GNM opened this issue Sep 21, 2021 · 5 comments
Labels
pygeoapi issues for pygeoapi

Comments

@PB-GNM
Copy link
Author

PB-GNM commented Oct 13, 2021

The GML output of the WFS request has been put into a separate GML file and added to the list of collections.
https://apisandbox.geonovum.nl/pygeoapi_SU/collections/StatisticalUnits_Gemeente_2017_GML gives the same error.

@justb4
Copy link
Contributor

justb4 commented Oct 14, 2021

@PB-GNM @thijsbrentjens I think the problem is that the GML file is based on an (INSPIRE) GML Application Schema (SU). The pygeoapi local.config.yml now uses the 'GML' Driver for this Collection. for GML Application Schema there is an GMLAS Driver. You may try that, though there may still be interworking issues.

An alternative is to download the dataset as a GeoJSON file using the WMS outputFormat option:

https://geodata.nationaalgeoregister.nl/su-vector/wfs?request=GetFeature&version=2.0.0&typeNames=su-vector:SU.VectorStatisticalUnit&filter=%3CFilter+xmlns=%22http://www.opengis.net/ogc%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Etessellation_localid%3C/PropertyName%3E%3CLiteral%3Egemeente.2017%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E&outputFormat=application/json

@PB-GNM
Copy link
Author

PB-GNM commented Dec 8, 2021

How do I tell Pygeoapi to use this GMLAS Driver?

Unfortunately &outputFormat=application/json is not working either:
https://apisandbox.geonovum.nl/pygeoapi_SU/collections/StatisticalUnits_Gemeente_2017/items?f=json

@justb4
Copy link
Contributor

justb4 commented Mar 10, 2023

@PB-GNM See #50 . I've just fixed the WFS connector with OGR in both Sandbox and original as I was preparing data for the Tender. Also @GeoSander.

Renamed a bit but https://apisandbox.geonovum.nl/pygeoapi_SU/collections/StatisticalUnits_Gemeente_2016_WFS/items?f=json is working. Had to change the config to have OGR Driver think the endpoint is GeoJSON. See comments in #50.

Now all SU testdata (GPKG and WFS) is avaiblable in https://apitestbed.geonovum.nl/pygeoapi/collections?f=html and
Sandbox https://apisandbox.geonovum.nl/ (multiple pygeoapi instances).

@justb4
Copy link
Contributor

justb4 commented Mar 14, 2023

So think we can close.

@justb4 justb4 closed this as completed Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pygeoapi issues for pygeoapi
Projects
None yet
Development

No branches or pull requests

2 participants