Active Topics

 



Notices


Reply
Thread Tools
casper27's Avatar
Posts: 844 | Thanked: 521 times | Joined on Jan 2009 @ UK southampton
#11
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's Avatar
Posts: 844 | Thanked: 521 times | Joined on Jan 2009 @ UK southampton
#12
Originally Posted by casper27 View Post
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.
 
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#13
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...
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 
Posts: 13 | Thanked: 14 times | Joined on Aug 2010
#14
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.
 

The Following User Says Thank You to Dr Random For This Useful Post:
casper27's Avatar
Posts: 844 | Thanked: 521 times | Joined on Jan 2009 @ UK southampton
#15
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.
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:48.