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
According to the ogrinfo we should be able to modify and edit the dataset:
-sql <statement>|@<filename>[](https://gdal.org/en/latest/programs/ogrinfo.html#cmdoption-ogrinfo-sql)
Execute the indicated SQL statement and return the result. Starting with GDAL 2.1, the @<filename> syntax can be used to indicate that the content is in the pointed filename (e.g @my_select.txt where my_select.txt is a file in the current directory). Data can also be edited with SQL INSERT, UPDATE, DELETE, DROP TABLE, ALTER TABLE etc. Editing capabilities depend on the selected dialect with [-dialect](https://gdal.org/en/latest/programs/ogrinfo.html#cmdoption-ogrinfo-dialect).
I'm trying to insert data into existing geopackage (by passing in the bytes) using the following options:
reading through some of the ogr2ogr stuff, it suggests the /input folder might need to be Writable and that's preventing it. Otherwise, maybe the file is readonly and needs to be opened as writeable. Not sure where wasm FS specifies this, but it might be as simple as having ogrinfo open the dataset in rw mode; though it could be more complex.
If I can't get RW, i'd need to pull in another large wasm binary like spl.js which would be excessive, being able to update and modify files would be a key feature of the web based library.
You may even want to add a rw/r flag to ogrinfo to make it clear that it's possible to update datasets. There's an explicit ro flag that could be triggered for syntatic sugar:
-ro
Open the data source in read-only mode.
The text was updated successfully, but these errors were encountered:
possibly related: #83
I'm trying to use https://gdal.org/en/latest/programs/ogrinfo.html / https://gdal3.js.org/docs/module-a_ogrinfo.html
According to the ogrinfo we should be able to modify and edit the dataset:
I'm trying to insert data into existing geopackage (by passing in the bytes) using the following options:
I get the following error:
I'm using legit dataset created by gdal3:
reading through some of the ogr2ogr stuff, it suggests the
/input
folder might need to be Writable and that's preventing it. Otherwise, maybe the file is readonly and needs to be opened as writeable. Not sure where wasm FS specifies this, but it might be as simple as having ogrinfo open the dataset in rw mode; though it could be more complex.If I can't get RW, i'd need to pull in another large wasm binary like spl.js which would be excessive, being able to update and modify files would be a key feature of the web based library.
You may even want to add a rw/r flag to ogrinfo to make it clear that it's possible to update datasets. There's an explicit ro flag that could be triggered for syntatic sugar:
The text was updated successfully, but these errors were encountered: