Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integration with "planetary computer" #20

Open
DanielJDufour opened this issue Nov 9, 2021 · 5 comments
Open

integration with "planetary computer" #20

DanielJDufour opened this issue Nov 9, 2021 · 5 comments
Milestone

Comments

@DanielJDufour
Copy link
Member

I created this issue to track issues with integrating with Microsoft's "planetary computer". @JustinGOSSES is leading the way on this effort: https://observablehq.com/@justingosses/exploring-microsoft-planetary-computer-stac-catalog

@DanielJDufour
Copy link
Member Author

  • I changed the code, so that it will log the overview's href that you are using regardless of whether it's a JPG/PNG or GeoTIFF.
  • I also added a test for a planetary computer STAC Item that was acting funny

Both changes in this commit: 7590371

@DanielJDufour
Copy link
Member Author

Issue with https://github.com/stac-utils/stac-layer/blob/main/src/test/stac-item/planetary-computer.html is that the asset with role "overview" (but name preview.png) returned by planetary computer is fully transparent: https://planetarycomputer.microsoft.com/api/data/v1/item/preview.png?collection=gap&items=gap_landfire_nationalterrestrialecosystems2011_-1161135_562215_-861135_262215&assets=data&tile_format=png&colormap_name=gap-lulc

I loaded up the data GeoTIFF in QGIS and that's all zero values in it:
Screen Shot 2021-11-09 at 8 48 55 AM

Screen Shot 2021-11-09 at 8 49 24 AM

I'll try out more STAC features and see if we can debug them as well.

fwiw, it should be possible to write a library/function that would check if an image is fully transparent and log to the console when this is the case. this might be over-engineering though, so we'll have to test and see how often this is the case.

(Please excuse all the messages)

@DanielJDufour
Copy link
Member Author

@JustinGOSSES , apologies if you already figured this. I think the reason why some of the images for the gap_landfire_nationalterrestial... feature collection aren't appearing is because they are in Mexico. I think they intersect the bbox of the continental USA, but not the actual polygon boundaries of the Landuse-Landcover Dataset that Microsoft uses.

@DanielJDufour
Copy link
Member Author

For the projection issue, @JustinGOSSES , do you mean when the Leaflet map is displayed in typical Web Mercator, but the data is in something like Albers, so the image is warped when it's displayed? Do you have a specific example that you would like us to look at? Thank you!

That's all for now :-)

@JustinGOSSES
Copy link

I'll need to replicate the projection issue a bit more.

I initially thought it was just different projection than leaflet default, but then I noticed some behavior that seemed like it might relate to zooming behaviors.

Haven't dived in deep yet, just put that note in the notebook as a reminder to look into it later.

@m-mohr m-mohr added this to the future milestone Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants