How to modify your project's WFS url to expose all function values: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
When using the WFS endpoint from the {{software}}, the used URL can be modified to add additional data or filters to the data. When accessing the WFS endpoint for constructions, the attributes of constructions will only include the function values which are assigned to the construction itself, not any values inherited from the construction's [[function]] without its own override of that value. The url can be given an additional parameter to include all function values, including those only inherited from the construction's function.
When using the WFS endpoint from the {{software}}, the used URL can be modified to add additional data or filters to the data. When accessing the WFS endpoint for Buildings, the attributes of Buildings will only include the function values which are assigned to the Building itself, not any values inherited from the Building's [[function]] without its own override of that value. The url can be given an additional parameter to include all function values, including those only inherited from the Building's function.


{{howto|title=allow changes in WFS data to overwrite data
{{howto|title=allow changes in WFS data to overwrite data
Line 8: Line 8:
}}
}}


This will change a url of the following form, which retrieves all constructions:
This will change a url of the following form, which retrieves all Buildings:
{{code|1=<nowiki>https://development.tygron.com/api/session/wfs/buildings?&token=06931643hoiXvvL8QXszPrVCv8m3lZ24</nowiki>}}
{{code|1=<nowiki>https://development.tygron.com/api/session/wfs/buildings?&token=06931643hoiXvvL8QXszPrVCv8m3lZ24</nowiki>}}
into a url of the following form, which causes all function values to be included in the output:
into a url of the following form, which causes all function values to be included in the output:
{{code|1=<nowiki>https://development.tygron.com/api/session/wfs/buildings?&inherit=true&token=06931643hoiXvvL8QXszPrVCv8m3lZ24</nowiki>}}
{{code|1=<nowiki>https://development.tygron.com/api/session/wfs/buildings?&inherit=true&token=06931643hoiXvvL8QXszPrVCv8m3lZ24</nowiki>}}


==Notes==
{{article end
|notes=
* The fact that by default not all function values are included in the data is due to the amount of resulting data which would otherwise need to be sent over. In fact, some external applications run the risk of crashing due to the large amount of memory required.
* The fact that by default not all function values are included in the data is due to the amount of resulting data which would otherwise need to be sent over. In fact, some external applications run the risk of crashing due to the large amount of memory required.
* If there are multiple edits which conflict with one another, the edits are considered processed in order that the features were initially created. Features that were created will have their edits effected first, allowing features which were created later to overwrite those edits.
* If there are multiple edits which conflict with one another, the edits are considered processed in order that the features were initially created. Features that were created will have their edits effected first, allowing features which were created later to overwrite those edits.
|seealso=
* [[WFS]]
}}
[[Category:How-to's]][[Category:WFS]]

Latest revision as of 15:51, 30 January 2024

When using the WFS endpoint from the Tygron Platform, the used URL can be modified to add additional data or filters to the data. When accessing the WFS endpoint for Buildings, the attributes of Buildings will only include the function values which are assigned to the Building itself, not any values inherited from the Building's function without its own override of that value. The url can be given an additional parameter to include all function values, including those only inherited from the Building's function.

How to allow changes in WFS data to overwrite data:
  1. Find the geographical data you wish to export and select its export option.
  2. In the export window, select the "Inherit all parent attributes" option.
  3. Select the "Copy URL" option of the Web Feature Service.
  4. The desired url is now 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 Buildings:

https://development.tygron.com/api/session/wfs/buildings?&token=06931643hoiXvvL8QXszPrVCv8m3lZ24

into a url of the following form, which causes all function values to be included in the output:

https://development.tygron.com/api/session/wfs/buildings?&inherit=true&token=06931643hoiXvvL8QXszPrVCv8m3lZ24

Notes

  • The fact that by default not all function values are included in the data is due to the amount of resulting data which would otherwise need to be sent over. In fact, some external applications run the risk of crashing due to the large amount of memory required.
  • If there are multiple edits which conflict with one another, the edits are considered processed in order that the features were initially created. Features that were created will have their edits effected first, allowing features which were created later to overwrite those edits.

See also