s1ard icon indicating copy to clipboard operation
s1ard copied to clipboard

Alternative to download S2 tiling grid KML

Open maawoo opened this issue 2 years ago • 4 comments

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 avatar May 11 '23 10:05 maawoo

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?

johntruckenbrodt avatar May 11 '23 14:05 johntruckenbrodt

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

maawoo avatar May 11 '23 15:05 maawoo

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 🙂

maawoo avatar Apr 15 '24 17:04 maawoo

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.

johntruckenbrodt avatar Apr 16 '24 13:04 johntruckenbrodt