[Qgis-developer] Problems with gdal path in python plugin
piko
piklas at gmail.com
Mon Mar 9 11:47:19 EDT 2009
Hi list !
I'm actually porting an old python plugin to 1.0 on Windows
On 0.11 Metis, i used to use some "dirty" gdal command from python to
extract pixels values for a given extent generated by Region Tool python
script like this :
command = QString("gdal_translate -ot Float32 -projwin " +str(xmin) +" " +
str(ymax) +" " + str(xmax) +" " + str(ymin) +" "+ infoString +"clip.tif")
klip=os.popen(str(command)).readlines()
This worked fine if "C:/Program Files/Quantum GIS/" was added to Windows
PATH
Now with OSGeo4W installer, gdal path seems not to be recognized, even if
"C:/OSGeo4W/apps/gdal-16/bin" is added to PATH (where the gdal exe are)
Any ideas to make gdal commands work properly ?
Thanks by advance
PikO
--
View this message in context: http://n2.nabble.com/Problems-with-gdal-path-in-python-plugin-tp2449727p2449727.html
Sent from the qgis-developer mailing list archive at Nabble.com.
More information about the Qgis-developer
mailing list