<!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; '>Paolo</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>>makeDifference</span><br><span style='font-size: 10pt; '>>
if fet.geometry().wkbSize() >
0:</span><br><span style='font-size: 10pt; '>>AttributeError: 'NoneType'
object has no attribute 'wkbSize'</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Please send the data you
tried to process to me. Which type of data you are work with? Shape, PostGIS,
GML .... Does the error arises at all geoporcessing methods?  </span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Sometimes the mentioned
error occours when the input data are non valid or GEOS produces non valid
geometries during the geoprocessing process. The best for me is to test with the
origonal data.</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: Paolo Cavallini
[mailto:cavallini@faunalia.it]</span><br><span style='font-size: 10pt; '>Gesendet
am: Sonntag, 25. Mai 2008 20:29</span><br><span style='font-size: 10pt; '>An:
qgis-user; qgis-developer</span><br><span style='font-size: 10pt; '>Betreff:
[Qgis-developer] python geoprocessing trouble</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Hi
all.</span><br><span style='font-size: 10pt; '>I'm doing a short course on
QGIS+GRASS in Portugal, and we're
</span><br><span style='font-size: 10pt; '>encountering some problems [1] on win
(let alone the nightmare of
</span><br><span style='font-size: 10pt; '>installing additional py packages,
and having py25 from qgis recognize
it).</span><br><span style='font-size: 10pt; '>Additionally, when running
manageR, loading layers into R results in [2].</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Anyone has encountered these
problems?</span><br><span style='font-size: 10pt; '>All the
best.</span><br><span style='font-size: 10pt; '>pc</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>==============</span><br><span style='font-size: 10pt; '>[1]An
error has occured while executing Python code:problem?</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:/Documents and
Settings/António</span><br><span style='font-size: 10pt; '>Mira/.qgis//python/plugins\Geoprocessing\geoprocessing.py",
line 243,
in</span><br><span style='font-size: 10pt; '>geoprocessing</span><br><span style='font-size: 10pt; '>
self.difference(myLayerA, myLayerB, myPath,
myBool)</span><br><span style='font-size: 10pt; '>File "C:/Documents and
Settings/António</span><br><span style='font-size: 10pt; '>Mira/.qgis//python/plugins\Geoprocessing\geoprocessing.py",
line 422,
in</span><br><span style='font-size: 10pt; '>difference</span><br><span style='font-size: 10pt; '>
diffResult = self.makeDifference(vlayerA,
vlayerB)</span><br><span style='font-size: 10pt; '>File "C:/Documents and
Settings/António</span><br><span style='font-size: 10pt; '>Mira/.qgis//python/plugins\Geoprocessing\geoprocessing.py",
line 927,
in</span><br><span style='font-size: 10pt; '>makeDifference</span><br><span style='font-size: 10pt; '>
if fet.geometry().wkbSize() >
0:</span><br><span style='font-size: 10pt; '>AttributeError: 'NoneType' object
has no attribute 'wkbSize'</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>==============</span><br><span style='font-size: 10pt; '>[2]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
"/home_slides/.qgis//python/plugins/manageR/domanageR.py", line
</span><br><span style='font-size: 10pt; '>347, in
load</span><br><span style='font-size: 10pt; '>  
self.commandList.append(expression)</span><br><span style='font-size: 10pt; '>TypeError:
'module' object is not
callable</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>