AW: [Qgis-developer] CAD Tools

Ziegler Stefan Stefan.Ziegler at bd.so.ch
Thu Apr 15 09:07:05 EDT 2010


Hi Paolo

do you get this all the time or in some specific cases? It looks like "d1" is zero which is the distance between two points. I can reproduce  it with a linestring layer but not with a polygon layer.

mit freundlichem Gruss
Stefan Ziegler


----- Originalnachricht -----
Von: "Paolo Cavallini" <cavallini at faunalia.it>
Gesendet: Don, 15.4.2010 14:36
An: qgis-developer at lists.osgeo.org
Betreff: [Qgis-developer] CAD Tools


Hi all.
While digitizing in CAD Tools, I got this:

Errore durante l'esecuzione di codice Python:

Traceback (most recent call last):
File "/home/paolo/.qgis/python/plugins/cadtools/tools/orthogonaltool.py",
line 208, in canvasMoveEvent
pp = self.orthoPnt(p1,  p2,  point)
File "/home/paolo/.qgis/python/plugins/cadtools/tools/orthogonaltool.py",
line 186, in orthoPnt
xp = p2.x() + d2*math.sin(mAngle-0.5*math.pi) * (p2.x()-p1.x()) / d1
ZeroDivisionError: float division

Any explanation?
All the best.
-- 
http://faunalia.it/pc
_______________________________________________
Qgis-developer mailing list
Qgis-developer at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list