Open maawoo opened 1 year ago
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?
Good question and thanks for pointing out this repo. I'll check this at some point soon when I find some time.
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 🙂
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.
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