sentinel-hub / sentinelhub-js

Download and process satellite imagery in JavaScript or TypeScript using Sentinel Hub services.
MIT License
52 stars 8 forks source link

Support cdse byoc #249

Closed dgostencnik closed 1 year ago

dgostencnik commented 1 year ago

BYOC layers already support different deployment locations (locationId) so in theory adding new location cdse should be sufficient. However, BYOC layer needs to call metadata/collections service to get location if it is not provided. While this service is central (services.sentinel-hub.com) for all "sentinel-hub" deployments (collection on creodias or mundi also uses services.sentinel-hub.com to fetch collection info), it of course uses different endpoint for cdse deployment. So I had to introduce shServiceUrl (not the best name) which is used to replace hardcoded urls for metadata/collections and configuration endpoints.

Other options that I considered and/or tried