mchaynes / geodatadownloader

A downloader of geodata
https://geodatadownloader.com
MIT License
70 stars 13 forks source link

Integrate GDAL conversion library #15

Closed mchaynes closed 1 year ago

mchaynes commented 2 years ago

ogr2ogr is amazing, and it can convert datasets from pretty much any format into pretty much any other format. This is ideal for allowing conversion from ESRI feature services.

If possible, to reduce memory usage and for simplicity's sake, it would be best to write directly to a GDALDataset instance of some kind for each feature, then convert to a different format if specified. Its likely that the GDALDataset will likely live in memory for the time being. Emscripten is actively working on implementing (https://github.com/emscripten-core/emscripten/issues/15041) a new WasmFS filesystem.

The good news is that there are already ports of gdal into the browser via webassembly, which is half the battle of getting this to work. Here's some background research: