stac-utils / stactools

Command line utility and Python library for STAC
https://stactools.readthedocs.io/
Other
105 stars 28 forks source link

Add geometry and bbox coordinate rounding #384

Closed pjhartzell closed 1 year ago

pjhartzell commented 1 year ago

Related Issue(s): None.

Description: The coordinates in Item geometries and bboxes and Collection extent bboxes often contain excess precision, much greater than 7 or 8 decimal places (which is roughly centimeter to millimeter level). This PR provides a utility to round coordinates to a specified precision. This saves a small amount of space when storing STAC, provides more consistent and clean looking STAC, and removes implications of extreme location accuracy (e.g., 12 decimal places implies accuracy to sub-micrometer level).

PR checklist:

gadomski commented 1 year ago

CI blocked by https://github.com/stac-utils/stactools/pull/385.