linz / basemaps

NZ’s authoritative and open digital basemap service for LINZ and the public.
https://basemaps.linz.govt.nz
Other
92 stars 17 forks source link

feat(linzjs-geojson): add iterate and truncate utilities for geojson #3340

Closed blacha closed 1 week ago

blacha commented 1 week ago

Motivation

We have had a need to reproject and truncate geojson objects and instead of copying the logic into multiple locations add it to the geojson helper we have here.

Modifications

Add truncate to truncate lat lon pairs to by default 8 decimal places Add iterate to iterate over all the points in a geojson feature

Verification

unit tests and is currently in use in other code bases.