Git Product home page Git Product logo

gridref-qgis's People

Contributors

mtravis avatar peterpetrik avatar saberraz avatar tomchadwin avatar wonder-sk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gridref-qgis's Issues

Lat/long

Would it be possible to add a box to the grid ref tool that shows the Lat long and allows you to search using that.

Plugin overrides F2 behaviour

F2 key is used commonly for renaming of items in the QGIS GUI (e.g. rename a layer or a group). By using it as a shortcut key in the plugin the renaming with F2 does not work anymore.

Lat/long - reporting

Can we have the lat/long in the dialog box that results from the users clicking the map.

Migration to QGIS 3.0

You had a go at this yet? I've tried running the 2to3 script on this plugin but it keeps giving me this error.

Traceback (most recent call last):
File "C:\Users\mtravis.qgis2\python\plugins\2to3.py", line 7, in
sys.exit(main('qgis_fixes'))
File "C:\Python27\lib\lib2to3\main.py", line 221, in main
avail_fixes = set(refactor.get_fixers_from_package(fixer_pkg))
File "C:\Python27\lib\lib2to3\refactor.py", line 108, in get_fixers_from_package
for fix_name in get_all_fix_names(pkg_name, False)]
File "C:\Python27\lib\lib2to3\refactor.py", line 35, in get_all_fix_names
pkg = import(fixer_pkg, [], [], ["*"])
ImportError: No module named qgis_fixes

Implement unit tests

@mtravis So the way this works is that you should write tests in Python, give them a filename starting test_, and put them in test. There are already some there which are provided out of the box by the Plugin Builder. You can then either run those tests individually to check they pass, or use nose to run them all at once.

@akbargumbira (I think) wrote a post describing how to run such tests on Windows, but generally, they only run on Linux/Mac.

Here's an initial list of possible tests, to expand as we think of more:

  • xy_to_osgb gives a correct result
  • xy_to_osgb outside BNG coverage behaves gracefully
  • xy_to_osgb with different precision gives results with the correct precision
  • Changing precision spinner changes precision setting
  • Clicking with the tool writes to the clipboard

F2 is reserved for renaming layer

When the plugin is activated, F2 causes crash.

It is best to use shortcut keys not reserved for main QGIS functions.

Thanks
Saber

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.