[Qgis-user] r.drain doesn't work

Bernd Vogelgesang bernd.vogelgesang at gmx.de
Wed Sep 25 00:50:13 PDT 2013


Victor,

tons of thanks for your unbelievable responsiveness.

Bernd

Am 24.09.2013, 10:44 Uhr, schrieb Victor Olaya <volayaf at gmail.com>:

> well, actually the r.drain script itself is also wrong, the parameter
> is called "Elevatio" instead of "Elevation".Easy to fix :-)
>
> 2013/9/24 Victor Olaya <volayaf at gmail.com>:
>> The problem is not in the script itsefl
>>
>> The problem that was reported is caused by the r.drain algorithm
>> having a multiple input of vector files. That is used by very few
>> algorithms, and there is a bug in the way those multiple inputs are
>> handled that we hadn't see before. I have it fixed and will push the
>> change to the repo today, along with some other minor changes.
>>
>> thanks for you help!
>>
>>
>> 2013/9/24 Bernd Vogelgesang <bernd.vogelgesang at gmx.de>:
>>> Hi
>>>
>>> I can confirm this error.
>>> It seems to me that r.drain never has been functional.
>>>
>>> Maybe you could file a bug in the tracker?
>>>
>>> Or maybe someone knows WHAT to change it WHICH script?
>>>
>>> Cheers
>>> Bernd
>>>
>>>
>>>
>>> Am 23.09.2013, 23:40 Uhr, schrieb SÅ‚awomir Bienias
>>> <slawomir.bienias at gmail.com>:
>>>
>>>
>>>> Hey, everyone..
>>>> I have a problem with r.drain in QGIS 2.0.1.
>>>> I need to use r.drain tool from Geoprocessing tools. But when I want  
>>>> to
>>>> use
>>>> it, while I have loaded some vector layers (esri shp), Python shows me
>>>> some
>>>> error (below).
>>>> "Funny" thing is, when I have loaded only raster files, r.drain works
>>>> (r.drain window shows up). Next "funny" thing is, all... ALL of the  
>>>> other
>>>> tools work just great. Only r.drain have a problem...
>>>>
>>>> The same problem is on Windows 7 64 bit (osgeo4w installation) and  
>>>> Ubuntu
>>>> 13.04 32 bit (ubuntugis-unstable ppa).
>>>>
>>>> I noticed, that error is related with shape type (if shapetype ==
>>>> QGisLayers.ALL_TYPES or layer.geometryType() in shapetype: TypeError:
>>>> argument of type 'float' is not iterable), but I don't know where  
>>>> problem
>>>> is and how to solve it...
>>>>
>>>>
>>>> Below is Python's log error (Windows 7):
>>>>
>>>> #####
>>>> Traceback (most recent call last):
>>>>   File
>>>>
>>>> "C:/OSGeo4W2/apps/qgis/./python/plugins\processing\gui\ProcessingToolbox.py",
>>>> line 147, in executeAlgorithm
>>>>     dlg = ParametersDialog(alg)
>>>>   File
>>>>
>>>> "C:/OSGeo4W2/apps/qgis/./python/plugins\processing\gui\ParametersDialog.py",
>>>> line 38, in __init__
>>>>     self.paramTable = ParametersPanel(self, alg)
>>>>   File
>>>>
>>>> "C:/OSGeo4W2/apps/qgis/./python/plugins\processing\gui\ParametersPanel.py",
>>>> line 78, in __init__
>>>>     self.initGUI()
>>>>   File
>>>>
>>>> "C:/OSGeo4W2/apps/qgis/./python/plugins\processing\gui\ParametersPanel.py",
>>>> line 120, in initGUI
>>>>     widget = self.getWidgetFromParameter(param)
>>>>   File
>>>>
>>>> "C:/OSGeo4W2/apps/qgis/./python/plugins\processing\gui\ParametersPanel.py",
>>>> line 279, in getWidgetFromParameter
>>>>     options = QGisLayers.getVectorLayers(param.datatype)
>>>>   File
>>>> "C:/OSGeo4W2/apps/qgis/./python/plugins\processing\core\QGisLayers.py",
>>>> line 84, in getVectorLayers
>>>>     if shapetype == QGisLayers.ALL_TYPES or layer.geometryType() in
>>>> shapetype:
>>>> TypeError: argument of type 'float' is not iterable
>>>>
>>>> Wersja Pythona:
>>>> 2.7.4 (default, Apr  6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]
>>>>
>>>> Wersja QGIS:
>>>> 2.0.1-Dufour Dufour, 34139bc
>>>>
>>>> Lokalizacja Pythona:
>>>> ['C:/OSGeo4W2/apps/qgis/./python/plugins\\processing',
>>>> 'C:/OSGeo4W2/apps/qgis/./python', 'C:\\Users\\Binko/.qgis2/python',
>>>> 'C:\\Users\\Binko/.qgis2/python/plugins',
>>>> 'C:/OSGeo4W2/apps/qgis/./python/plugins',
>>>> 'C:\\OSGeo4W2\\bin\\python27.zip',  
>>>> 'C:\\OSGeo4W2\\apps\\Python27\\DLLs',
>>>> 'C:\\OSGeo4W2\\apps\\Python27\\lib',
>>>> 'C:\\OSGeo4W2\\apps\\Python27\\lib\\plat-win',
>>>> 'C:\\OSGeo4W2\\apps\\Python27\\lib\\lib-tk', 'C:\\OSGeo4W2\\bin',
>>>> 'C:\\OSGeo4W2\\apps\\Python27',
>>>> 'C:\\OSGeo4W2\\apps\\Python27\\lib\\site-packages',
>>>> 'C:\\OSGeo4W2\\apps\\Python27\\lib\\site-packages\\PIL',
>>>> 'C:\\OSGeo4W2\\apps\\Python27\\lib\\site-packages\\win32',
>>>> 'C:\\OSGeo4W2\\apps\\Python27\\lib\\site-packages\\win32\\lib',
>>>> 'C:\\OSGeo4W2\\apps\\Python27\\lib\\site-packages\\Pythonwin',
>>>> 'C:\\OSGeo4W2\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode',
>>>> 'C:\\OSGeo4W2\\apps\\qgis\\python\\plugins\\fTools\\tools']
>>>> #####
>>>>
>>>>
>>>> Regards,
>>>> SÅ‚awomir Bienias
>>>
>>>
>>>
>>> --
>>> Bernd Vogelgesang * Siedlerstrasse 2 * 91083 Baiersdorf *  
>>> +49-9133-825374
>>> _______________________________________________
>>> Qgis-user mailing list
>>> Qgis-user at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-user


-- 
Bernd Vogelgesang * Siedlerstrasse 2 * 91083 Baiersdorf * +49-9133-825374



More information about the Qgis-user mailing list