You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will get you round the issue in the mean time:
awaitdb.registerFileHandle('tmp_results.geojson',newUint8Array(),0,true);// Duck/Spatial needs this but can't create is for some reason?awaitdb.registerFileHandle('results.geojson',newUint8Array(),0,true);// The file name you want to use without the 'tmp_' prefixawaitconnection.query(` copy ( select * from 'area_data.parquet' ) to 'results.geojson' with ( FORMAT GDAL, DRIVER 'GeoJSON', LAYER_CREATION_OPTIONS 'WRITE_BBOX=YES' );`);constgeojson_buffer=awaitdb.copyFileToBuffer('results.geojson');constlink=URL.createObjectURL(newBlob([geojson_buffer]));console.log("geojson url: ",link);
What happens?
Writing a file with the spatial extension in duckbb wasm raise a GDAL error (
IO Error: GDAL Error (3): Cannot write feature
).I also wrote a similar issue in the spatial repo #363
To Reproduce
See this reproductible example in the shell
Browser/Environment:
Chrome 128
Device:
MacBook Pro 2019
DuckDB-Wasm Version:
[email protected]
DuckDB-Wasm Deployment:
shell.duckdb.org
Full Name:
Thomas Ansart
Affiliation:
Sciences Po
The text was updated successfully, but these errors were encountered: