Skip to content

[GEO] Add optional left/right parameter to GeoJSON #8764

@nknize

Description

@nknize

Suggested by @clintongormley in issue #5968 this feature will add support for an optional orientation parameter enabling users to specify explicit intent on vertex ordering. Note that orientation is with respect to the map/coordinate system - left = cw, right = ccw

The following provides an example where the order parameter specifies explicit dateline crossing and will result in https://gist.github.com/nknize/d122b243dc63dcba8474. Using 'left' will result in https://gist.github.com/anonymous/82b50b74a7b6d170bfc6 Note that in the following example all holes will be converted to clockwise (left) order for OGC compliance (see #8762).

"geometry": {
        "type": "Polygon",
        "orientation": "right"
        "coordinates": [
          [ [178, 42], [178, 39], [-178, 39], [-178, 42], [178, 42] ]
      }

Absent this parameter functionality will work as described (and implemented) in #8762

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions