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

Raster editing should be possible without writing the result to disk right away #83

Open
kb173 opened this issue Aug 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@kb173
Copy link
Member

kb173 commented Aug 2, 2023

Like with vector editing, we should add a mid-layer where changes are written to, rather than writing directly into the original data.

Specifically for raster data, this could just be another GeoRasterLayer with the same size, initially filled with nodata, to which only the edited regions are added over time. When loading raster data, this dataset should be added onto the original data. When saving, that dataset should be merged into the original one and cleared (filled with nodata again).

This not only makes editing less error-prone, but should also drastically improve performance (while slightly reducing performance of raster loading when the data has been edited - but that's rare)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant