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

Alternative to download S2 tiling grid KML #87

Open
maawoo opened this issue May 11, 2023 · 4 comments
Open

Alternative to download S2 tiling grid KML #87

maawoo opened this issue May 11, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@maawoo
Copy link
Member

maawoo commented May 11, 2023

I have extracted and converted the polygon features of the Sentinel-2 tiling grid KML file to a lightweight 10 MB Flatgeobuf file, which allows random access through GDAL's /vsicurl/. This might be a viable alternative to downloading and storing the 108 MB KML file. Visually the grid aligns to the KML grid. I have not done any other tests though.

https://github.com/maawoo/sentinel-2-grid-fgb

@maawoo maawoo added the enhancement New feature or request label May 11, 2023
@johntruckenbrodt
Copy link
Member

Interesting idea @maawoo. We sure need to find a way around this cumbersome KML file. I never heard about flatgeobuf. In how far does it compare to the conversion to geoparquet done here: https://github.com/scottyhq/mgrs?

@maawoo
Copy link
Member Author

maawoo commented May 11, 2023

Good question and thanks for pointing out this repo. I'll check this at some point soon when I find some time.

@maawoo
Copy link
Member Author

maawoo commented Apr 15, 2024

FYI, I have forked and updated scottyhq/mgrs:
https://github.com/maawoo/sentinel-2-grid-geoparquet

The entire grid as GeoParquet is just 4,5 MB 🙂

@johntruckenbrodt
Copy link
Member

This is awesome @maawoo! Thanks a lot. I won't be able to get right to it but making the change from the KML file is obviously worth the effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants