You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been struggling with getting a correct turf.square using real world coordinates until I realized I needed to pass mercator coordinates to make it work correctly on earth.
Maybe we could just add a hint in the docs or add a function that detects wgs84 coordinates and makes the correct calculation / conversion.
This is the result doing it with Wgs84 lat long:
And the expected result with conversion to mercator and back:
I've been struggling with getting a correct
turf.square
using real world coordinates until I realized I needed to pass mercator coordinates to make it work correctly on earth.Maybe we could just add a hint in the docs or add a function that detects wgs84 coordinates and makes the correct calculation / conversion.
This is the result doing it with Wgs84 lat long:

And the expected result with conversion to mercator and back:

Quick code for the second result:
The text was updated successfully, but these errors were encountered: