Giter Site home page Giter Site logo

webgeodatavore / azimuth_measurement Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 7.0 699 KB

Plugin to measure azimuth in a simple way

License: GNU General Public License v2.0

Makefile 14.94% Python 74.56% Batchfile 5.17% Shell 3.06% QML 1.96% QMake 0.12% CSS 0.08% HTML 0.10%

azimuth_measurement's People

Contributors

thomasg77 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

azimuth_measurement's Issues

Error with qgis 2.14.1 when loading plugin: int() argument must be a string or a number, not 'NoneType'

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

Possible Duplicate Functionality

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.

Error message

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.