Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
4 votes
1 answer
802 views

Change layer path using PyQGIS

I have a QGIS Project with many raster layers. I need to change/repair all paths since I moved the original data to Another disk. layer = iface.activeLayer() old_path = r'D:/Somefolder_QGIS_200317' ...
Bera's user avatar
  • 77.8k
2 votes
1 answer
844 views

PermissionError : [WinError 32] --> how to close raster file handler after use?

I created a function where I access to a Raster folder and get all files CRS for Rsubdir, Rdirs, Rfiles in os.walk(Rrootdir): for Rfile in Rfiles: ...
Namoat's user avatar
  • 307
4 votes
1 answer
577 views

Changing QGIS system SVG path with PyQGIS

I am trying to change the SVG path with Python but I couldn't find any document which explains how to do this. This is what I want to do. I Added SVG symbols to my plugin in a specific folder. When ...
Ehsan Aliverdi's user avatar