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

Discrepancy between ATOM and JSON formats (GML, GeoJson) for Polygon information content

    XMLWordPrintable

    Details

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

      Minimally, we must clarify to which GML concept (interior or exterior rings) the GeoJSON Polygon refers to. Presumably the exterior.

      (Note: this issue points to a larger issue that we have not defined an "information model" for Geo-types that is independent of the format.)

      Show
      Minimally, we must clarify to which GML concept (interior or exterior rings) the GeoJSON Polygon refers to. Presumably the exterior. (Note: this issue points to a larger issue that we have not defined an "information model" for Geo-types that is independent of the format.)
    • Resolution:
      Hide

      This issue is a result of my misreading of the GeoJSON spec. There is therefore no change required.

      Show
      This issue is a result of my misreading of the GeoJSON spec. There is therefore no change required.

      Description

      GML seems to require that Polygons specify (usually) an exterior ring, but also permits the specification or zero or more interior rings.

      GeoJSON only seems to allow a single set of points (see example in http://geojson.org/geojson-spec.html#id4)

      For OData, one would hope that there is some kind of notion of the information content of Polygon coordinates which is independent of the format (ATOM or JSON) that we use. (Even if this information content is not formally documented, we could imagine that it exists).

      Unfortunately, this mismatch in Polygon coordinates between GML and GeoJSON seems hard to fit into a single information model.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: