mtravis / gridref-qgis Goto Github PK
View Code? Open in Web Editor NEWSimple QGIS plugin that takes map coordinates and translates into a OSGB Grid Ref
Simple QGIS plugin that takes map coordinates and translates into a OSGB Grid Ref
@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 resultxy_to_osgb
outside BNG coverage behaves gracefullyxy_to_osgb
with different precision gives results with the correct precisionWould it be possible to add a box to the grid ref tool that shows the Lat long and allows you to search using that.
When the plugin is activated, F2 causes crash.
It is best to use shortcut keys not reserved for main QGIS functions.
Thanks
Saber
that will allow users to batch process easting,northing files to BNG and vice vers.
It's not clear when the plugin is active - the button in the panel doesn't appear depressed. I guess this is probably a Qt setting?
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.
Do people agree that this is a good idea?
I wonder if it makes more GUI sense? What do others think?
the current plugin doesn’t allow the user to specify the precision of the grid reference. They’re all 8 figure (10m) e.g. SX 8453 5486.
Can we have the lat/long in the dialog box that results from the users clicking the map.
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
.pyc
thanks
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.