SAR-ARD / s1ard

Sentinel-1 ARD Prototype Processor
MIT License
23 stars 6 forks source link

Alternative to download S2 tiling grid KML #87

Open maawoo opened 1 year ago

maawoo commented 1 year ago

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

johntruckenbrodt commented 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?

maawoo commented 1 year ago

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

maawoo commented 4 months ago

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 commented 4 months ago

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.