How to modify your project's WFS url to filter on attributes: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
Combined with an attribute, you can even access the following WFS endpoint: | Combined with an attribute, you can even access the following WFS endpoint: | ||
{{code|1=<nowiki>https://engine.tygron.com/api/session/wfs/buildings-education-primary_school</nowiki>}} | {{code|1=<nowiki>https://engine.tygron.com/api/session/wfs/buildings-education-primary_school</nowiki>}} | ||
[[Category:How-to's]][[Category:WFS]] |
Revision as of 10:37, 13 December 2022
When using the WFS endpoint from the Tygron Platform, the used URL can be modified to add additional data or filters to the data. Geographical data can be filtered by their attributes. I.e. a url can be modified so that only features with a specific attribute are made available.
How to filter WFS data on attributes:
- Find the geographical data you wish to export and select its export option
- In the export window, select the "with attribute" option
- Select the attribute you wish to filter on
- At the export options, select the "Copy URL" option of the Web Feature Service
- The desired url is not copied on your clipboard, and can be pasted in your desired GIS application.
This will change a url of the following form, which retrieves all constructions:
https://development.tygron.com/api/session/wfs/buildings?&token=06931643hoiXvvL8QXszPrVCv8m3lZ24
into a url of the following form, which only exposes constructions with the "MONUMENTAL" attribute:
https://development.tygron.com/api/session/wfs/buildings-monumental?&token=06931643hoiXvvL8QXszPrVCv8m3lZ24
The WFS endpoint can also be further specifc by adding a category:
https://engine.tygron.com/api/session/wfs/buildings-education
Combined with an attribute, you can even access the following WFS endpoint:
https://engine.tygron.com/api/session/wfs/buildings-education-primary_school