Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-597

Seeking clarification of naming for GeographyCollection with GeoJSON

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_OS
    • Fix Version/s: V4.0_ERRATA01
    • Component/s: JSON Format
    • Labels:
      None
    • Environment:

      [Applied]

    • Proposal:
      Hide

      I propose we don't introduce new properties/annotations at this point; that a geographyCollection is represented as a geometryCollection with "geometries" as the property name. Whether it is to be interpreted as geography or geometry is based on metadata.

      Accepted: https://www.oasis-open.org/committees/download.php/52767/odata-meeting-70_on-20140403-minutes.html#odata-597

      Show
      I propose we don't introduce new properties/annotations at this point; that a geographyCollection is represented as a geometryCollection with "geometries" as the property name. Whether it is to be interpreted as geography or geometry is based on metadata. Accepted: https://www.oasis-open.org/committees/download.php/52767/odata-meeting-70_on-20140403-minutes.html#odata-597

      Description

      GeoJSON section 2.1.8 states:

      A GeoJSON object with type "GeometryCollection" is a geometry object which represents a collection of geometry objects.

      A geometry collection must have a member with the name "geometries". The value corresponding to "geometries" is an array. Each element in this array is a GeoJSON geometry object.

      Can we assume that for OData, a GeographyCollection contains a member with the name "geographies", as opposed to "geometries", and that the "type" will be "GeographyCollection" rather than "GeometryCollection"?

      Or do we assume that the "geometry" naming is used in the GeoJSON format, even for "geography" types?

        Attachments

          Activity

            People

            • Assignee:
              mikep Michael Pizzo
              Reporter:
              evan.ireland.2 Evan Ireland
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: