webgeodatavore / azimuth_measurement Goto Github PK
View Code? Open in Web Editor NEWPlugin to measure azimuth in a simple way
License: GNU General Public License v2.0
Plugin to measure azimuth in a simple way
License: GNU General Public License v2.0
With version 0.1 and qgis 2.14.1 this plugin is reported as broken. In the plugin overview it says:
"This plugin is broken int() argument must be a string or a number, not 'NoneType'" with the plugin.
The full traceback is
Couldn't load plugin AzimuthMeasurement due to an error when calling its classFactory() method
TypeError: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
File "/usr/share/qgis/python/qgis/utils.py", line 306, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "/home/dolf/.qgis2/python/plugins/AzimuthMeasurement/__init__.py", line 35, in classFactory
return AzimuthMeasurement(iface)
File "/home/dolf/.qgis2/python/plugins/AzimuthMeasurement/azimuth_measurement.py", line 83, in __init__
self.draw_mono_line = DrawMonoLineMapTool(self.canvas)
File "/home/dolf/.qgis2/python/plugins/AzimuthMeasurement/draw_mono_line_map_tool.py", line 17, in __init__
int(s.value('default_measure_color_red')),
TypeError: int() argument must be a string or a number, not 'NoneType'
Python version: 2.7.11 (default, Mar 31 2016, 06:18:34) [GCC 5.3.0]
QGIS version: 2.14.1-Essen Essen, exported
It looks like you may have duplicated the Shape Tools Plugin, Geodesic Measurement Tool which provides the azimuth angles. Be sure you are not duplicating functionality. I tried to test your plugin, but for some reason it is not working for me.
When I try to activiate Azimuth Measurement I get the followoing error message
Couldn't load plugin 'AzimuthMeasurement' due to an error when calling its classFactory() method
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
Traceback (most recent call last):
File "C:/PROGRA1/QGIS31.6/apps/qgis/./python\qgis\utils.py", line 335, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:/Users/Irvine/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\AzimuthMeasurement_init_.py", line 35, in classFactory
return AzimuthMeasurement(iface)
File "C:/Users/Irvine/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\AzimuthMeasurement\azimuth_measurement.py", line 88, in init
self.draw_mono_line = DrawMonoLineMapTool(self.canvas)
File "C:/Users/Irvine/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\AzimuthMeasurement\draw_mono_line_map_tool.py", line 17, in init
int(s.value('default_measure_color_red')),
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
QGIS version: 3.6.0-Noosa Noosa, 58734527ab
Python Path:
C:/PROGRA1/QGIS31.6/apps/qgis/./python
C:/Users/Irvine/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/Irvine/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA1/QGIS31.6/apps/qgis/./python/plugins
C:\Program Files\QGIS 3.6\bin\python37.zip
C:\PROGRA1\QGIS31.6\apps\Python37\DLLs
C:\PROGRA1\QGIS31.6\apps\Python37\lib
C:\Program Files\QGIS 3.6\bin
C:\PROGRA1\QGIS31.6\apps\Python37
C:\PROGRA1\QGIS31.6\apps\Python37\lib\site-packages
C:\PROGRA1\QGIS31.6\apps\Python37\lib\site-packages\win32
C:\PROGRA1\QGIS31.6\apps\Python37\lib\site-packages\win32\lib
C:\PROGRA1\QGIS31.6\apps\Python37\lib\site-packages\Pythonwin
C:/Users/Irvine/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/Irvine/Documents/QGIS/RSC
if it could use snapp it would be actually usefull.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.