developmentseed / pearl-backend

PEARL (Planetary Computer Land Cover Mapping) Platform API and Infrastructure
MIT License
55 stars 7 forks source link

Add collection id to imagery source model #78

Closed vgeorge closed 8 months ago

vgeorge commented 8 months ago

In order to fetch metadata from Planetary Computer STAC Catalog, we need to use its collection ids, but the Imagery Source model doesn't include it. We need to add a property collectionId to it, which will be used to fetch metadata from the collection, like the mosaics available. Some example URLs:

https://planetarycomputer.microsoft.com/api/data/v1/mosaic/info?collection=sentinel-2-l2a https://planetarycomputer.microsoft.com/api/data/v1/mosaic/info?collection=naip

cc @ingalls @geohacker

ingalls commented 8 months ago

Added in: https://github.com/developmentseed/pearl-backend/pull/38/commits/d30bdba0e7d3054353570deff9895cd9d67aa5d6