Skip to content

Examples in appendix have wrong orientation #231

@sgillies

Description

@sgillies

The no-hole Polygon

      {
          "type": "Polygon",
          "coordinates": [
              [
                  [100.0, 0.0],
                  [100.0, 1.0],
                  [101.0, 1.0],
                  [101.0, 0.0],
                  [100.0, 0.0]
              ]
          ]
      }

winds clockwise and should be fixed.

The example with holes

      {
          "type": "Polygon",
          "coordinates": [
              [
                  [100.0, 0.0],
                  [100.0, 1.0],
                  [101.0, 1.0],
                  [101.0, 0.0],
                  [100.0, 0.0]
              ],
              [
                  [100.8, 0.8],
                  [100.2, 0.8],
                  [100.2, 0.2],
                  [100.8, 0.2],
                  [100.8, 0.8]
              ]
          ]
      }

has the same problem plus a hole that winds counterclockwise (wrong).

The multipolygon examples are also wrong.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions