Feature request #16538
Live editing of worldfiles is only working partially
Status: | Feedback | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Rasters | ||
Pull Request or Patch supplied: | No | Resolution: | |
Easy fix?: | No | Copied to github as #: | 24444 |
Description
Hi !
When loading an image with a worldfile in QGIS, it's possible to edit the worldfile from an external editor, and the raster is redisplayed at the new position in QGIS upon redraw.
This is great since it allows nice interactive georeferencing workflows.
But currently, it only works partially. It seems the initial extent of the layer is not refreshed, so that the layer gets cropped to the first position's extents.
I think this should be supported, or at least provide some python methods to refresh the extent.
I tried these and they didn't work:
myRasterLayer.triggerRepaint()
myRasterLayer.dataProvider().reload()
myRasterLayer.recalculateExtents.emit()
self.iface.mapCanvas().refresh()
Thanks !
History
#1 Updated by Giovanni Manghi over 7 years ago
- Status changed from Open to Feedback
Would not be best fitted as feature request rather than a bug? cheers!
#2 Updated by Giovanni Manghi over 7 years ago
- Status changed from Feedback to Open
- Tracker changed from Bug report to Feature request
#3 Updated by Even Rouault about 7 years ago
I guess this somehow works since at the rendering stage the raster is re-opened again (which I consider to be a bug, see #16006). I don't think supporting automatical update on changing datasets behind QGIS back is a good idea, and open a big can of worms. Does manual refresh with F5 on the layer works ?
#4 Updated by Giovanni Manghi about 7 years ago
- Status changed from Open to Feedback