How to modify your project's WFS url to allow transactions to overwrite conflicting data: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
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 [[building]]s:
{{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:
Line 14: Line 14:


==Notes==
==Notes==
* The kind of data that is potentially blocking (or overwritten with the overwrite parameter) would be, for example, overlapping constructions. With the overwrite parameter, rather than that the points of overlap cause the modified data to be rejected, the geometry of the existing constructions will be adjusted to make way for the new constructions. Specifically, where the geometries intersect, the existing construction's geometry will be removed.
* The kind of data that is potentially blocking (or overwritten with the overwrite parameter) would be, for example, overlapping buildings. With the overwrite parameter, rather than that the points of overlap cause the modified data to be rejected, the geometry of the existing buildings will be adjusted to make way for the new buildings. Specifically, where the geometries intersect, the existing building's geometry will be removed.

Revision as of 11:42, 7 October 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. Through transactions, it is possible to effect changes in the data in your project. However, default behavior is that when data conflicts, then the modification is not processed. It is possible to allow changes to overwrite existing data when such a conflict occurs.

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 "Overwrite existing" option of the Web Feature Service.
  3. Select the "Copy URL" option of the Web Feature Service.
  4. 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 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?&override=true&token=06931643hoiXvvL8QXszPrVCv8m3lZ24

Notes

  • The kind of data that is potentially blocking (or overwritten with the overwrite parameter) would be, for example, overlapping buildings. With the overwrite parameter, rather than that the points of overlap cause the modified data to be rejected, the geometry of the existing buildings will be adjusted to make way for the new buildings. Specifically, where the geometries intersect, the existing building's geometry will be removed.