I am generating new raster files from vector layers on a project. I would like to save them in the same directory as the project or layer files. How do I find this path using PyQGIS?
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
For python console:
Or with
you find something like
For python plugin (not tested!):
|
||||
|
If you want to access a vector file path, on a active layer, this seems to work:
then to open a picture or text located in same directory as mylayer:
|
|||
|
|