Closed kb173 closed 1 year ago
GDAL's RasterIO needs to be used for this: https://gdal.org/doxygen/classGDALRasterBand.html#a75d4af97b3436a4e79d9759eedf89af4
We identified 3 different use-cases which could be handled by separate Geodot functions:
Although we could let the user deal with everything manually and simply allow them to replace a section of a dataset with a different (altered) Image, this seems prone to errors and to decaying the dataset e.g. due to wrong resolutions being read and written back into the data; it might also cause code duplication across projects.
So we'll add three different functions for the use-cases described above:
All done with cb6117c and c51420c. Opportunities for major performance improvements are documented in https://github.com/boku-ilen/geodot-plugin/issues/72.
We need methods like
set_pixel(x, y, value)
with x and y as projected coordinates.How such changes should be propagated to users of that data needs to be considered - probably with signals, similarly to the Vector editing functionality. We must probably directly modify the actual data in order to ensure that the updated data is returned regardless of extent, resolution, etc.