Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

blacha
Copy link
Member

@blacha blacha commented Sep 6, 2024

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.

@blacha blacha marked this pull request as ready for review September 6, 2024 03:05
@blacha blacha requested a review from a team as a code owner September 6, 2024 03:05
@blacha blacha added this pull request to the merge queue Sep 6, 2024
Merged via the queue into master with commit 406b3eb Sep 6, 2024
11 of 12 checks passed
@blacha blacha deleted the feat/iterate-truncate branch September 6, 2024 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants