-
Notifications
You must be signed in to change notification settings - Fork 117
Closed
Description
- Bug Report can be reported using the provided template below:
Expected Behavior
As per GeoJSON specification (Section 3.1.6) a valid polygon must have the same first and last point.
The first and last positions are equivalent, and they MUST contain
identical values; their representation SHOULD also be identical.
Current Behavior
Current implementation generates circle where first and last point are not the same. This is reflected in tests where expected circle polygon is incorrect.
$ geojsonhint circle_out.json
1:1 error the first and last positions in a LinearRing of coordinates must be the same
✖ 1 errorPossible Solution/Implementation
Add first point to coordinates list in circle method
https://github.com/mapbox/mapbox-java/blob/master/services-turf/src/main/java/com/mapbox/turf/TurfTransformation.java#L65
Steps to Reproduce
Metadata
Metadata
Assignees
Labels
No labels