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

Reduce precision of geojson feature geometry? #346

Open
dblodgett-usgs opened this issue Nov 14, 2022 · 1 comment
Open

Reduce precision of geojson feature geometry? #346

dblodgett-usgs opened this issue Nov 14, 2022 · 1 comment

Comments

@dblodgett-usgs
Copy link
Member

Precision of geojson is kind of crazy high.

e.g. https://labs.waterdata.usgs.gov/api/nldi/linked-data/nwissite/USGS-09372400/navigate/UM?f=json

-109.470320106 is five decimal digits is probably enough.

@EthanGrahn
Copy link

Taking a look at the PostGIS documentation, it doesn't seem we can set the precision at a database level. However, we have lines like this in the service code that we could adjust the precision of the output. (currently set to 9)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants