Closed disarticulate closed 7 months ago
Hi @disarticulate,
I added the "all" attribute that lists all generated files in the ogr2ogr, gdal_translate, gdalwarp and gdal_rasterize outputs. https://gdal3.js.org/docs/TypeDefs.html#.FilePath
Will it work?
Everyone hates shapefiles: it generates multiple files: https://gdal.org/drivers/vector/shapefile.html
Currently, only the obvious *.shp file is presented as
filePath
. It should be generating at least three (four typically) files: .shp, .shx, and .dbfto allow the ogr2ogr api seems it seems two options:
it looks like these files are being generated:
so a initial work around would be to get output files instead of relying on the return value of ogr2ogr, but that would requiree knowing what these files are in advance (writing a special shaprefile only converter), which is difficult because of https://github.com/bugra9/gdal3.js/issues/44 as processing can't dictate the output filename, so no general purpose function seems reliable
to support shapefiles (or others?), I'd propose returning an array from ogr2ogr if multiple files are created or documenting this behavior and implementing a fix for https://github.com/bugra9/gdal3.js/issues/44