[QGIS-trac] [Quantum GIS] #3668: GDALTools: DEM throws an error

Quantum GIS qgis at qgis.org
Wed Mar 23 03:12:21 EDT 2011


#3668: GDALTools: DEM throws an error
------------------------------------------------+---------------------------
   Reporter:  pcav                              |              Owner:  brushtyler   
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.7.0
  Component:  GDALTools                         |            Version:               
   Keywords:                                    |   Platform_version:               
   Platform:  Debian                            |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 When activating the Raster>DEM menu, I immediately get an error:

 {{{
 Traceback (most recent call last):
   File "/usr/share/qgis/python/plugins/GdalTools/GdalTools.py", line 322,
 in doDEM
     d = DEM( self.iface )
   File "/usr/share/qgis/python/plugins/GdalTools/tools/doDEM.py", line 47,
 in __init__
     (self.colorAlphaCheck, SIGNAL("stateChanged(int)"))
   File
 "/usr/share/qgis/python/plugins/GdalTools/tools/widgetPluginBase.py", line
 108, in setParamsStatus
     self.setParamsStatus(wdgts_sgnls_chk_ver)
   File
 "/usr/share/qgis/python/plugins/GdalTools/tools/widgetPluginBase.py", line
 148, in setParamsStatus
     gdalVer = Utils.GdalConfig.version()
   File
 "/usr/share/qgis/python/plugins/GdalTools/tools/GdalTools_utils.py", line
 443, in version
     return Version(gdal.VersionInfo("RELEASE_NAME"))
 RuntimeError: Invalid index : -1
 Versione Python:
 2.6.6 (r266:84292, Dec 26 2010, 22:48:11)
 [GCC 4.4.5]


 Versione di QGIS:
 1.7.0-Wroclaw Wroclaw, 15577M
 }}}

 This with gdal 1.7.3:

 {{{
 >>> from osgeo import gdal
 >>> print gdal.VersionInfo("RELEASE_NAME")
 1.7.3
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/3668>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list