If you want to add geojson with excessive coordinate precision to TerraDraw by using addFeatures,
TerraDraw raise a validation error if you add GeoJSON with excessive precision.
use this function to make sure geojson coordinates to meet terradraw setting before adding features.
Round coordinates to given coordinate precision
If you want to add geojson with excessive coordinate precision to TerraDraw by using addFeatures, TerraDraw raise a validation error if you add GeoJSON with excessive precision.
use this function to make sure geojson coordinates to meet terradraw setting before adding features.
The below is a sample usage of the function