Feature #1161

API: add more geometry objects

Added by Bernhard Koschicek 5 months ago. Updated 6 days ago.

Target version:
Start date:
Estimated time:


In order to be really confirm with the geojson standard, the API has to differentiate more geometry objects than Point, Polygon, LineString and Geometry Collection. So we shoult add MultiPoint, MultiLineString and MultiPolygon.
"To maximize interoperability, implementations SHOULD avoid nested GeometryCollections. Furthermore, GeometryCollections composed of a single part or a number of parts of a single type SHOULD be avoided when that single part or a single object of multipart type(MultiPoint, MultiLineString, or MultiPolygon) could be used instead."

I think for now we can leave it be, since it is not wrong, but for the next version it should be included.



Updated by Alexander Watzinger 4 months ago

  • Target version changed from 204 to 5.2.0
  • Status changed from New to Assigned

Updated by Alexander Watzinger 4 months ago

  • Subject changed from Add more geometry objects to API: add more geometry objects

Updated by Alexander Watzinger 3 months ago

  • Target version changed from 5.2.0 to API

Updated by Bernhard Koschicek 22 days ago

  • Assignee changed from Bernhard Koschicek to Stefan Eichert

Updated by Stefan Eichert 22 days ago

In the linked places the example given is as follows:

"geometry": {
        "type": "GeometryCollection",
        "geometries": [
            { "type": "Point",
              "coordinates": [-1.2879,51.6708],
              "when": {"timespans":[
              "citations": [
                {"label": "Getty TGN (retrieved 4 May 2018)",
              "certainty": "certain" 
            { "type": "Point",
              "coordinates": [-1.31,51.64],
              "geo_wkt": "POLYGON ((-1.3077 51.6542, -1.2555 51.6542, -1.2555 51.6908, -1.3077 51.6908, -1.3077 51.6542))",
              "when": {"timespans":[{"start":{"in":"1700"}}]},
              "certainty": "uncertain" 

So probably we should stick to this?

Updated by Bernhard Koschicek 6 days ago

  • Status changed from Assigned to Closed

Ok, I'm fine with it. It is easier this way, thank you.

Also available in: Atom PDF