Closed mike-marcacci closed 7 years ago
According to https://tools.ietf.org/html/rfc7946#section-3.1.6 that's also true for GeoJSON.
The first and last positions are equivalent, and they MUST contain identical values; their representation SHOULD also be identical.
Ah, yes – you are definitely correct there!
Some formats like GeoJSON don't require that a polygon's last point match its first, while others like WKT do.
For example:
Wkx should ensure the presence of closing points when converting to a format that requires it, either by normalizing to closed topologies on input, or conditionally adding on output.