Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix google maps circle to polygon conversion
When converting a large google maps circle (e.g. a circle covering Africa) to a WKT polygon the first and last coordinate of the output are not exactly the same, this causes issues when using it in other libraries. In my case JSTS complains that the linestring is not closed. This is an example of such a converted circle: POLYGON((71.69991307132003 0.9262704706813841,...,71.69991307132003 0.9262704706813717)). To ensure the calculated polygon is closed the last vertex will no longer be calculated but copied over from the first vertex.
- Loading branch information