[Qgis-user] problem with sextante geoprocessing
Salvatore Larosa
lrssvtml at gmail.com
Fri Jul 20 11:21:31 PDT 2012
Hi Chris,
Il giorno ven, 20/07/2012 alle 10.22 -0700, Chris Henrick ha scritto:
> Hi,
>
>
> I'm trying to run a clip command in QGIS 1.8 Mac OSX 10.6 with the
> Sextante plug-in but get this error:
>
>
> Clip instance has no attribute 'vlayerA'
>
> Traceback (most recent call last):
>
> File
> "/Users/chrishenrick/.qgis//python/plugins/sextante/core/GeoAlgorithm.py", line 116, in execute
>
> self.processAlgorithm(progress)
>
> File
> "/Users/chrishenrick/.qgis//python/plugins/sextante/ftools/Clip.py",
> line 36, in processAlgorithm
>
> vproviderA = self.vlayerA.dataProvider()
>
> AttributeError: Clip instance has no attribute 'vlayerA'
>
For a quick solution:
This patch should solve the issue:
Index: src/sextante/ftools/Clip.py
===================================================================
--- src/sextante/ftools/Clip.py (revisione 302)
+++ src/sextante/ftools/Clip.py (copia locale)
@@ -33,10 +33,10 @@
vlayerB =
QGisLayers.getObjectFromUri(self.getParameterValue(Clip.INPUT2))
GEOS_EXCEPT = True
FEATURE_EXCEPT = True
- vproviderA = self.vlayerA.dataProvider()
+ vproviderA = vlayerA.dataProvider()
allAttrsA = vproviderA.attributeIndexes()
vproviderA.select( allAttrsA )
- vproviderB = self.vlayerB.dataProvider()
+ vproviderB = vlayerB.dataProvider()
allAttrsB = vproviderB.attributeIndexes()
vproviderB.select( allAttrsB )
# check for crs compatibility
As Giovanni said, the best place for the issues is bugtracker:
http://hub.qgis.org/projects/sextante/issues ;-)
Cheers,
-SL
--
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
More information about the Qgis-user
mailing list