[Qgis-user] Azimuth and distance plugin for QGIS 2.X
Nick Hopton
nhopton at gmail.com
Sun Jan 19 02:53:08 PST 2014
giedrius wrote
> I tried, but the plugin does not work. Writes error:
>
> An error has occured while executing Python code:
>
> Traceback (most recent call last):
> File "/home/giedrius/.qgis2/python/plugins/qgsAzimuth/qgsAzimuth.py",
> line 188, in addgeometry
> if (surveytype== 'polygonal'):
> UnboundLocalError: local variable 'surveytype' referenced before
> assignment
>
> Python version:
> 2.7.3 (default, Jan 2 2013, 14:09:21)
> [GCC 4.7.2]
>
>
> QGIS version:
> 2.1.0-Master Master, exported
>
> Python path: ['/home/giedrius/.qgis2/python/plugins/processing',
> '/usr/share/qgis/python', u'/home/giedrius/.qgis2/python',
> u'/home/giedrius/.qgis2/python/plugins', '/usr/share/qgis/python/plugins',
> '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2',
> '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old',
> '/usr/lib/python2.7/lib-dynload',
> '/usr/local/lib/python2.7/dist-packages',
> '/usr/lib/python2.7/dist-packages',
> '/usr/lib/python2.7/dist-packages/PIL',
> '/usr/lib/python2.7/dist-packages/gtk-2.0',
> '/usr/lib/pymodules/python2.7',
> '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode',
> '/usr/share/qgis/python',
> '/home/giedrius/.qgis2/python/plugins/mmqgis/forms',
> '/usr/share/qgis/python/plugins/fTools/tools',
> '/home/giedrius/.qgis2/python/plugins/DigitizingTools/tools',
> '~/.qgis/python', '/media/sda4/home/giedrius/Dokumentai/qgis']
Just checking. After entering the starting vertex, the azimuth and the
distance you did press the "Add to Bottom" button before pressing the "Draw"
button? I get exactly the same errors as you if I don't do this.
Nick.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Azimuth-and-distance-plugin-for-QGIS-2-X-tp5097302p5098854.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
More information about the Qgis-user
mailing list