<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<head><meta http-equiv="Content-Type" content="text/html;">
<title>Scalix message content</title>
<style type="text/css">
<!--
.Normal { text-align: left; text-indent:0pt; margin-top:0pt; margin-bottom:0pt; font-family: Arial; font-size: 12pt; }
.Default_Paragraph_Font {font-family: Arial; color: Black; background-color: white ; font-size: 12pt; font-weight: normal; font-style: normal; font-variant: normal; vertical-align: normal; text-decoration: none;}
div.ltTOCtitle { font-family: Verdana; font-size: 8pt; font-weight: bold; text-align: center;}
div.ltTOCl1 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:32pt; text-indent:-32pt;}
div.ltTOCl2 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:40pt; text-indent:-32pt;}
div.ltTOCl3 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:48pt; text-indent:-32pt;}
div.ltTOCl4 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:56pt; text-indent:-32pt;}
div.ltTOCl5 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:64pt; text-indent:-32pt;}
div.ltTOCl6 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:72pt; text-indent:-32pt;}
-->
</style>
</head>
<body>
<div class="Normal"><span style='font-size: 10pt; '>Carlos</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Thank you for your
suggestions. </span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>The error message you send
to me leeds to an encoding problem I believe. Please send the layer name you
used to me perhaps you use some special characters?</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Regards</span><br><span style='font-size: 10pt; '>Horst</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>------------------------------------------------</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Dr. Horst
Düster</span><br><span style='font-size: 10pt; '>GIS-Koordinator, Stv.
Amtschef</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Kanton
Solothurn</span><br><span style='font-size: 10pt; '>Bau- und
Justizdepartement</span><br><span style='font-size: 10pt; '>Amt für
Geoinformation</span><br><span style='font-size: 10pt; '>SO!GIS
Koordination</span><br><span style='font-size: 10pt; '>Rötistrasse
4</span><br><span style='font-size: 10pt; '>CH-4501 Solothurn</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Telefon ++41(0)32 627 25
32</span><br><span style='font-size: 10pt; '>Telefax ++41(0)32 627 22
14</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>mailto:horst.duester@bd.so.ch</span><br><span style='font-size: 10pt; '>http://www.agi.so.ch</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>-----Ursprüngliche
Nachricht-----</span><br><span style='font-size: 10pt; '>Von: Carlos
Dávila
[mailto:cdavilam@jemila.jazztel.es]</span><br><span style='font-size: 10pt; '>Gesendet
am: Freitag, 11. April 2008 19:57</span><br><span style='font-size: 10pt; '>An:
qgis-developer</span><br><span style='font-size: 10pt; '>Betreff: Re:
[Qgis-developer] Geoprocessing error</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>John C. Tull
escribió:</span><br><span style='font-size: 10pt; '>>
Horst,</span><br><span style='font-size: 10pt; '>></span><br><span style='font-size: 10pt; '>>
I tried performing a union of two vector files with multiple
polygons,</span><br><span style='font-size: 10pt; '>> and received the error
below. This was using the 0.35 version of
the</span><br><span style='font-size: 10pt; '>> plugin with William
Kyngesburye's RC1 binary of qgis (I still
cannot</span><br><span style='font-size: 10pt; '>> get the plugin to work for
me in my development builds). The
union</span><br><span style='font-size: 10pt; '>> worked in ubuntu with
version 0.35 of the plugin and latest
svn.</span><br><span style='font-size: 10pt; '>></span><br><span style='font-size: 10pt; '>></span><br><span style='font-size: 10pt; '>>
An error has occured while executing Python
code:</span><br><span style='font-size: 10pt; '>></span><br><span style='font-size: 10pt; '>>
Traceback (most recent call
last):</span><br><span style='font-size: 10pt; '>>
File</span><br><span style='font-size: 10pt; '>>
"/Users/jctull/.qgis//python/plugins/geoprocessing/geoprocessing.py",</span><br><span style='font-size: 10pt; '>>
line 242, in geoprocessing</span><br><span style='font-size: 10pt; '>>
self.union(myLayerA, myLayerB, myPath,
myBool)</span><br><span style='font-size: 10pt; '>>
File</span><br><span style='font-size: 10pt; '>>
"/Users/jctull/.qgis//python/plugins/geoprocessing/geoprocessing.py",</span><br><span style='font-size: 10pt; '>>
line 266, in union</span><br><span style='font-size: 10pt; '>> resultList =
self.makeUnion(vlayerA, vlayerB)</span><br><span style='font-size: 10pt; '>>
File</span><br><span style='font-size: 10pt; '>>
"/Users/jctull/.qgis//python/plugins/geoprocessing/geoprocessing.py",</span><br><span style='font-size: 10pt; '>>
line 832, in makeUnion</span><br><span style='font-size: 10pt; '>>
unionResult = self.makeIntersection(vlayerA,
vlayerB)</span><br><span style='font-size: 10pt; '>>
File</span><br><span style='font-size: 10pt; '>>
"/Users/jctull/.qgis//python/plugins/geoprocessing/geoprocessing.py",</span><br><span style='font-size: 10pt; '>>
line 998, in makeIntersection</span><br><span style='font-size: 10pt; '>>
fet.setAttributeMap(mAttributes)</span><br><span style='font-size: 10pt; '>>
AttributeError: setAttributeMap </span><br><span style='font-size: 10pt; '>I'm
getting a similar error with buffer or difference
tools:</span><br><span style='font-size: 10pt; '>An error has occured while
executing Python code:</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Traceback (most recent call
last):</span><br><span style='font-size: 10pt; '> File
"/C/Mis</span><br><span style='font-size: 10pt; '>documentos/.qgis//python/plugins/geoprocessing/geoprocessing.py",
line</span><br><span style='font-size: 10pt; '>233, in
geoprocessing</span><br><span style='font-size: 10pt; '>
self.buffering(myLayerA, myParam, myPath, myBool,
mergeBool)</span><br><span style='font-size: 10pt; '> File
"/C/Mis</span><br><span style='font-size: 10pt; '>documentos/.qgis//python/plugins/geoprocessing/geoprocessing.py",
line</span><br><span style='font-size: 10pt; '>448, in
buffering</span><br><span style='font-size: 10pt; '> vlayer =
self.getVectorLayerByName(myLayer)</span><br><span style='font-size: 10pt; '>
File
"/C/Mis</span><br><span style='font-size: 10pt; '>documentos/.qgis//python/plugins/geoprocessing/geoprocessing.py",
line</span><br><span style='font-size: 10pt; '>516, in
getVectorLayerByName</span><br><span style='font-size: 10pt; '> vlayer =
QgsVectorLayer(unicode(layer.source(),'latin1'),</span><br><span style='font-size: 10pt; '>unicode(myName,'latin1'),
providerName)</span><br><span style='font-size: 10pt; '>UnboundLocalError: local
variable 'providerName' referenced
before</span><br><span style='font-size: 10pt; '>assignment</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>System is debian testing,
qgis r8328, Qt 4.3.3 and plugin v0.35. I
think</span><br><span style='font-size: 10pt; '>error can be related with the
layers being in edition mode, but I
can't</span><br><span style='font-size: 10pt; '>reproduce error in another
computer (the only difference is Qt
4.3.4).</span><br><span style='font-size: 10pt; '>Before the error a dialog
entitled "Meldung" appears with the
message</span><br><span style='font-size: 10pt; '>"Kein Provider gefundel!"
(Shouldn't it be translated?).</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Apart from this issue, I
would like to suggest a couple of
things:</span><br><span style='font-size: 10pt; '>1) The plugin has a "Save as:"
box where you select a directory to
save</span><br><span style='font-size: 10pt; '>the new layer. As you don't
select a name but a directory, wouldn't
it</span><br><span style='font-size: 10pt; '>be better to say "Save
to:"?</span><br><span style='font-size: 10pt; '>2) Could output layer name for
buffers be
input_layer_bufferX.shp</span><br><span style='font-size: 10pt; '>instead of
bufferX?</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Regards and thanks for so
useful
plugin.</span><br><span style='font-size: 10pt; '>Carlos</span><br><span style='font-size: 10pt; '>_______________________________________________</span><br><span style='font-size: 10pt; '>Qgis-developer
mailing
list</span><br><span style='font-size: 10pt; '>Qgis-developer@lists.osgeo.org</span><br><span style='font-size: 10pt; '>http://lists.osgeo.org/mailman/listinfo/qgis-developer</span></div>
</body>
</html>