Project

General

Profile

Actions

Feature #1987

closed

API: Add centroid points of geometries

Added by Jona Schlegel over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Start date:
2023-03-09
Estimated time:

Description

It would be great to also have the centroid points of the artifacts that have a polygon or line location also available via the API.

Implementation
Use new parameter centroid=<True, False> for lp, geojson, geojson-v2 and RDF/XML formats, also for subunit endpoint.
The centroid is added and does not replace the actual geometry.
(autogenerated) is added to the name property.

Actions #1

Updated by Alexander Watzinger over 1 year ago

  • Subject changed from add centroid points of artifacts to API to Add centroid points of artifacts to API
  • Status changed from New to Assigned
  • Target version set to 7.15.0

Thank your for reporting, this could be very useful indeed.
@ @Bernhard Koschiček-Krombholz - we are already using this for the map in the backend, let me know in case you need help with this. We should implement this with any polygons when already at it, not just for the artifact ones.

Actions #2

Updated by Bernhard Koschiček-Krombholz over 1 year ago

I would make a parameter named centroid (true/false), to mark if you want the centroid or not.
Questions:
  • should the point replace the polygon entry or should it be additionally
  • should it be marked, that this was automatically calculated? I think of adding a (calculated) to properties.name
Actions #3

Updated by Jona Schlegel over 1 year ago

should the point replace the polygon entry or should it be additionally

I would make it additionally.

should it be marked, that this was automatically calculated? I think of adding a (calculated) to properties.name

Marking it as something (automatically) calculated sounds good to me.

Actions #4

Updated by Bernhard Koschiček-Krombholz over 1 year ago

  • Description updated (diff)
  • Status changed from Assigned to Closed

Currently, in develop branch.

Actions #5

Updated by Bernhard Koschiček-Krombholz over 1 year ago

  • Target version changed from 7.15.0 to 7.12.0
Actions #6

Updated by Bernhard Koschiček-Krombholz over 1 year ago

  • Subject changed from Add centroid points of artifacts to API to API: Add centroid points of geometries
Actions

Also available in: Atom PDF