maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] OSGB - show location in UK coordinate system on N900 (https://talk.maemo.org/showthread.php?t=65436)

casper27 2011-04-04 19:26

Re: [Announce] OSGB - show location in UK coordinate system on N900
 
Thanks, I already installed python-qtmobility.location and --reinstall just to make sure but am still getting the same no module error. Could someone please try this application to see if works on their device.
Cheers.

casper27 2011-04-05 21:26

Re: [Announce] OSGB - show location in UK coordinate system on N900
 
Quote:

Originally Posted by casper27 (Post 981272)
Hey gus any help appreciated, im getting this error even though im pretty sure I have installed correct Qt libraries and Mobility.

~/MyDocs/OSTN02_OSGM02files $ python osgb.py
Traceback (most recent call last):
File "osgb.py", line 21, in <module>
from QtMobility.Location import *
ImportError: No module named QtMobility.Location

Not too great with Python so any help appreciated.

just bumping this to see if anyone can point in right direction.

vi_ 2011-04-06 14:50

Re: [Announce] OSGB - show location in UK coordinate system on N900
 
Does anyone know if it is possible to add multimap OS maps/OS getamap tile source directly to modrana or cloudgps? That would be beautifull...

Dr Random 2011-04-08 14:42

Re: [Announce] OSGB - show location in UK coordinate system on N900
 
There will be a new version shortly - a bit more complicated though!

The original intention was to use this for wildlife recording, so it has indeed moved in that direction. I found that the GPS was reasonably accurate but not all the time, so I had to add basic mapping, which no doubt everyone will be pleased about.

It uses any 1km tiles in the OS projection, with names SK1358 etc. It is possible to extract these from the 1:10000 squares provided by the OS through OpenData. Unfortunately, to get 1:25000 (which is what everyone really wants) means downloading from Getamap or elsewhere, and I can't automate this as part of the released software without doing something naughty.

I've also added automated searching for items to record from a set of lists - UK plants, fungi, mammals, reptiles etc. These include both common and scientific names. The records are added as a waypoint. (Adding waypoints manually also works). Waypoints can be exported to an ESRI shapefile, though when everything is working I'll probably add KML to that. If anyone has any lists they want adding, let me know.

The main screen has dropped the speed display and now shows the nearest waypoints and their distance and grid bearing.

The bit I'm currently struggling with (which is why there hasn't been a release yet) is that I need to place waypoints within polygons (such as when a wildlife site is divided into management areas). I've created a table for polygons (which can be imported from a GIS shapefile), but the point in polygon code included in the Qt Graphics doesn't seem to be 100% reliable, even though they draw on the map correctly.

More soon...


PS I'm not sure exactly which python modules you need to install (mainly because I've installed too many), but amongst many I've got

python-qtmobility11
python-qtmobility
python2.5-qt4
python-pyside

although I'm using slightly different dependencies for the current version.

You are probably better off installing the large meta-packages than the individual dependencies, unless you have a good reason not to.

casper27 2011-06-12 13:41

Re: [Announce] OSGB - show location in UK coordinate system on N900
 
Anyone actually got this to work other than OP. Im still getting the same error.

~/MyDocs/OSTN02_OSGM02files $ python osgb.py
Traceback (most recent call last):
File "osgb.py", line 21, in <module>
from QtMobility.Location import *
ImportError: No module named QtMobility.Location

Even after reinstalling all the python modules.

python-qtmobility11
python-qtmobility
python2.5-qt4
python-pyside

QtMobility.Location seems to have installed ok but it cannot find it.


All times are GMT. The time now is 21:52.

vBulletin® Version 3.8.8