Closed vgeorge closed 8 months ago
The following mosaic, created after the introduction of POST /mosaic (#72), fails to load because its search id cannot be found at Planetary Computer:
Mosaic API payload
{ "id": "f0569bb3f9694728b7e9a9170e5f930a", "name": "Sentinel-2 Level-2A 2023-09-06 00:00 UTC - 2023-12-05 00:00 UTC", "params": { "assets": ["B04", "B03", "B02", "B08"], "rescale": "0,10000", "collection": "sentinel-2-l2a" }, "imagery_source_id": 2, "created": 1705574718624, "updated": 1705574718624, "mosaic_ts_start": 1693958400000, "mosaic_ts_end": 1701734400000, "ui_params": { "assets": ["B04", "B03", "B02"], "collection": "sentinel-2-l2a", "color_formula": "Gamma+RGB+3.2+Saturation+0.8+Sigmoidal+RGB+25+0.35" } }
PC URL https://planetarycomputer.microsoft.com/api/data/v1/mosaic/tiles/f0569bb3f9694728b7e9a9170e5f930a/16/14546/29202?assets=B04&assets=B03&assets=B02&collection=sentinel-2-l2a&color_formula=Gamma+RGB+3.2+Saturation+0.8+Sigmoidal+RGB+25+0.35
This mosaic, created directly in the database, before the new endpoint, works:
{ "id": "2849689f57f1b3b9c1f725abb75aa411", "name": "Sentinel-2 Dec 2019 - March 2020", "params": { "assets": ["B04", "B03", "B02", "B08"], "rescale": "0,10000", "collection": "sentinel-2-l2a" }, "imagery_source_id": 2, "created": 1701346775488, "updated": 1701346775488, "mosaic_ts_start": 1575158400000, "mosaic_ts_end": 1585612800000, "ui_params": { "assets": ["B04", "B03", "B02"], "collection": "sentinel-2-l2a", "color_formula": "Gamma+RGB+3.2+Saturation+0.8+Sigmoidal+RGB+25+0.35" } }
PC URL https://planetarycomputer.microsoft.com/api/data/v1/mosaic/tiles/2849689f57f1b3b9c1f725abb75aa411/16/14546/29198?assets=B04&assets=B03&assets=B02&collection=sentinel-2-l2a&color_formula=Gamma+RGB+3.2+Saturation+0.8+Sigmoidal+RGB+25+0.35
cc @ingalls @geohacker
This was fixed by allowing the PC search id to be passed as the id value for the new mosaic.
id
The following mosaic, created after the introduction of POST /mosaic (#72), fails to load because its search id cannot be found at Planetary Computer:
Mosaic API payload
PC URL https://planetarycomputer.microsoft.com/api/data/v1/mosaic/tiles/f0569bb3f9694728b7e9a9170e5f930a/16/14546/29202?assets=B04&assets=B03&assets=B02&collection=sentinel-2-l2a&color_formula=Gamma+RGB+3.2+Saturation+0.8+Sigmoidal+RGB+25+0.35
This mosaic, created directly in the database, before the new endpoint, works:
Mosaic API payload
PC URL https://planetarycomputer.microsoft.com/api/data/v1/mosaic/tiles/2849689f57f1b3b9c1f725abb75aa411/16/14546/29198?assets=B04&assets=B03&assets=B02&collection=sentinel-2-l2a&color_formula=Gamma+RGB+3.2+Saturation+0.8+Sigmoidal+RGB+25+0.35
cc @ingalls @geohacker