brazil-data-cube / bdc-stac

SpatioTemporal Asset Catalog Implementation for the Brazil Data Cube
https://bdc-stac.readthedocs.io/en/latest/
GNU General Public License v3.0
6 stars 9 forks source link

Intersect with Grid Geometry Table instead #157

Closed raphaelrpl closed 1 year ago

raphaelrpl commented 2 years ago

The current version intersects with Item.geom which is WGS84 to summarize the catalog.

We should use native Item tile grid instead to prevent wrong search meta.

For example, lets suppose we have the following WKT Lat/Lon: POINT (-52.45285034179688 -17.5117960765697) and you want to intersect with MOD13Q1-6 in Brazil Data Cube. The given point intersecting with Item.geom (4326) directly matches the tile 013010. However, this points belongs to tile 012010.

For others applications which uses stac (WTSS), the time serie for this point using WGS84 will be nodata.

This issue is related with https://github.com/brazil-data-cube/bdc-catalog/issues/160

raphaelrpl commented 1 year ago

This feature was implemented in https://github.com/brazil-data-cube/bdc-stac/commit/ff7b121e284417a43d187f08e0eb90317b5f472e#diff-7fb245869e997338e98f24116157f3022a818d897f3bbcb415226ac88ac1ddeeR148 using env variable BDC_STAC_USE_FOOTPRINT.