sat-utils / sat-api

One API to search public satellites metadata on AWS
https://sat-api.developmentseed.org/search/stac
MIT License
177 stars 20 forks source link

change ES precision for geometry searches, add envvar to change #182

Closed matthewhanson closed 5 years ago

matthewhanson commented 5 years ago

Adds a new env var, SATAPI_ES_PRECISION to change the default precision for geometry queries.

The old value was 5mi, which led to matching scenes even when the AOI was well outside the scene footprint.

Without setting it, the new default value will be '50m' (meters), which is the default for Elasticsearch.

resolves #178

If the precision is changed in the index after there is already data, then the data will need to be reindexed.