Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destructive operations on read-opened datasets should raise #6

Open
turboladen opened this issue Dec 3, 2020 · 0 comments
Open

Destructive operations on read-opened datasets should raise #6

turboladen opened this issue Dec 3, 2020 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@turboladen
Copy link
Contributor

GDAL seems to let you change raster data (and maybe vector too?) even if you've opened it in read mode. Well, it doesn't let you really change it--it just doesn't bomb out when you try to change it, but also doesn't change the data. This leaves you thinking you've called the right methods, etc, but confused when the outcome of our dataset isn't what you expect.

There are a number of RasterBand methods that change data of self that could benefit from checking what access mode the dataset was opened with.

http://gdal.org/1.11/gdal_8h.html#a25ac3c86b87c0d936014085ee27ba2b8

@turboladen turboladen added the bug Something isn't working label Dec 3, 2020
@turboladen turboladen added this to the 2.0 milestone Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant