For #252. Trim to 6 decimal places recommended by the GJ spec.
https://github.com/dabreegster/route_snapper/pull/38 did this for the route and snapped polygon tool, but it's not included in ATIP yet (I'll make another few changes and then release a new NPM version). This PR does it for the point, freehand polygon tool, and when splitting routes.
I thought about also doing this transformation in the backfill routine (when we load a GJ file from somewhere), but I don't think it's as important. If/when we have a story about storing official submitted data in one central place, we could do the transformation there.
Tested by drawing/splitting stuff, exporting, and manually checking the file
For #252. Trim to 6 decimal places recommended by the GJ spec.
https://github.com/dabreegster/route_snapper/pull/38 did this for the route and snapped polygon tool, but it's not included in ATIP yet (I'll make another few changes and then release a new NPM version). This PR does it for the point, freehand polygon tool, and when splitting routes.
I thought about also doing this transformation in the backfill routine (when we load a GJ file from somewhere), but I don't think it's as important. If/when we have a story about storing official submitted data in one central place, we could do the transformation there.
Tested by drawing/splitting stuff, exporting, and manually checking the file