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
When comparing the transform_translate function with the transformTranslate function in the JS turf library, the coordinates precision is reduce to 6 values after the decimal in the python library.
Is there a way to get to the precision that I've started with (7).
it can be fixed. whenever you create a Point object from geojson library, you can add the parameter "precision". i think it's defaulting to 6 decimal places, but it can be arbitrary. you may wish to pass this value down, or just hard-code it to something bigger.
When comparing the transform_translate function with the transformTranslate function in the JS turf library, the coordinates precision is reduce to 6 values after the decimal in the python library.
Is there a way to get to the precision that I've started with (7).
transform_translate({"coordinates": [5.1036861, 52.0850478], "type": "Point"}, 5.9323754494890855, 63.45775765114114, 'm')
I would expect this to have at least 7, but the response is:
{'coordinates': [5.103764, 52.085072], 'type': 'Point'}
Please help if there's any idea. I tried changing the units to 'cm', but I don't think this was a valid option.
The text was updated successfully, but these errors were encountered: