Re: [Qgis-developer] Proper way to get the path to gdal's executables from a python plugin

2016-04-30 Thread Tom Chadwin
There are better ways than subprocess. You can try: import processing processing.runalg("gdalogr:warpreproject", list, of, params) This depends on the Processing plugin being enabled, though. Or you can try: from osgeo import gdal -- View this message in context: http://osgeo-org.1560.x6.nab

[Qgis-developer] Proper way to get the path to gdal's executables from a python plugin

2016-04-29 Thread Olivier Dalang
Dear List, I'm updating the RasterBender plugin and need to use the gdalwarp and gdal_translate command line tools from within Python. What is the recommended way to run gdal command line tools from within a QGIS plugin ? Here under Windows it works with : subprocess.check_call(''C:\\OSGeo4W\\bi