Skip to content

polygons are inconsistent with geojson standard #45

@vohtaski

Description

@vohtaski

According to geojson specification, polygon can contain closed Linear rings with 4 or more coordinates.
https://tools.ietf.org/html/rfc7946#section-3.1.6

image (2)

However, the version 0.1.6 allows to create polygons with only 3 coordinates which is incosistent with the specification.

	poly := orb.Polygon{
		{
			{48.01300048828125, -21.32305807356671},
			{48.01300048828125, -21.32305807356671},
			{48.01300048828125, -21.32305807356671},
		},
	}
	fmt.Println(poly)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions