Convert raster and vector geospatial data to various formats and coordinate systems entirely in the browser.
GNU Lesser General Public License v2.1
300
stars
45
forks
source link
vite+vue3 gdal3.js get error: "gdal3.js:1 gdal stderr: ERROR 4: Failed to create GeoJSON datasource" #69
Closed
zhangtaohua closed 4 months ago
when I use gdal3.js in a vite + vue3 project, after initGdalJs from 'gdal3.js', when using Gdal.ogr2ogr to translate I get the following errors:
gdal3.js:1 gdal stderr: ERROR 4: Failed to create GeoJSON datasource: /output/hk/hk.geojson: /output/hk/hk.geojson: No such file or directory gdal stderr: ERROR 1: GeoJSON driver failed to create /output/hk/hk.geojson gdal3.js:1 gdal stderr: ERROR 10: Pointer 'hDS' is NULL in 'GDALGetFileList'.
The code like this: