Gpsdrive with Openstreetmap

This article is outdated. They changed something that prevents Mapnik from working :-(

Will review when I have more time...

Want an open source navigation system, using open source maps? Read on!

Install the software:

sudo aptitude install postgresql postgresql-client postgresql-contrib postgresql-8.4-postgis
sudo aptitude install osm2pgsql gpsdrive

Change the password of the Postgres user (optional):

sudo -u postgres -i
psql postgres
ALTER USER postgres WITH ENCRYPTED PASSWORD 'new_password';
\q
rm .psql_history
exit

Add the following to /etc/sysctl.conf:

kernel.shmmax = 268435456

Change the following lines in /etc/postgresql/8.4/main/postgresql.conf:

shared_buffers = 128MB
checkpoint_segments = 20
maintenance_work_mem = 256MB
autovacuum = off

In Kubuntu 10.04 and later, it may be necessary to uncomment the latter 3 lines (remove the hash sign # from the beginning of the line).

Reboot for the shared memory settings (shmmax) to take effect. Check with:

sysctl -a | grep shmmax

Create the GIS database and change its owner (to you).

sudo -u postgres -i
   createuser your_username
   createdb -O your_username gis
   createlang plpgsql gis
   psql -d gis -f /usr/share/postgresql/8.4/contrib/_int.sql
   psql -d gis -f /usr/share/postgresql/8.4/contrib/postgis-1.5/postgis.sql
   psql -d gis
      ALTER TABLE geometry_columns OWNER TO your_username;
      ALTER TABLE spatial_ref_sys OWNER TO your_username;
      \q
   exit

Then you need to define the reference coordinate system by downloading:

http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/900913.sql

and execute it using:

psql -d gis -f 900913.sql

Now download a map from http://wiki.openstreetmap.org/index.php/Planet.osm and import it into the database using the following command:

osm2pgsql planet-nl-090221.osm.gz

Note that you need at least 1Gb of free RAM for this. If you have less, or if the command fails to allocate enough space, then use the -s option, and, if needed, the -C option. Then, however, you will need lots of disk space. In my case 6Gb was not enough, and that was just the map of the Netherlands... From the help info:

-s|--slim Store temporary data in the database. This greatly reduces the RAM usage but is much slower.
-C|--cache Only for slim mode: Use upto this many MB for caching nodes. Default is 800.

Start and quit gpsdrive, just in order to create its configuration directory. Then use the following commands to create a waypoint file if it does not exist and remove a config file before running gpsdrive in order to enable mapnik mode:

touch ~/.gpsdrive/way.txt
rm ~/.gpsdrive/osm.xml

Start gpsdrive. Enable mapnik mode and position mode. Click on the map to move it. Use the horizontal slider or Shift-LeftMB/Shift-RightMB to zoom in/out. When using gpsdrive for the first time, the cursor may be at a spot somewhere off the map. If this is the case, zoom out until you see a map and zoom into it.

Setting up the GPS device

If it is a USB device, its path will be something like /dev/ttyUSB0. If it is Bluetooth, make sure you have bluez-utils installed:

aptitude install bluez-utils

Then use the following command to find the address of your Bluetooth GPS device:

hcitool scan

Then connect it to /dev/rfcomm0:

rfcomm connect /dev/rfcomm0 xx:xx:xx:xx:xx:xx

Replace the x'es by the address of your GPS device. Test it using:

cat /dev/rfcomm0

You should see some coordinates passing by. Press Ctrl-C to quit. Now start gpsd:

gpsd /dev/rfcomm0

If you start gpsdrive now, it should find the GPS device.

References:

 

sterling silver rings

I am a noob on coding. I don't know anything about it. It is too difficult to try. sterling silver rings

A debt of gratitude is in

A debt of gratitude is in order for offering this quality data to us. I truly delighted in perusing. Will clearly going to impart this URL to my companions. video submission

台中當鋪

Can I adjusting my tablet with this code? 台中當鋪

KRW Hail Claims Lawyers

I never knew before that to set the sitemap this simple so much. I am waiting for another useful and helpful post. KRW Hail Claims Lawyers

Micropigmentação Capilar São Paulo

I don't now any coding at all. I am a noob in it. Micropigmentação Capilar São Paulo

The article has actually

The article has actually peaks my interest. I am going to bookmark your web site and maintain checking for brand new information. portugal tourism

And it employs

And it employs abundant beneath assets if compared to a accepted force wall. And ultimately the endure blazon is the anchored application bank which can be accustomed in any antecedent mentioned designs but aswell constitutes added ability appliance cables or added stays anchored in the clay which is just abaft it. aussie essay review

shiprabrock

I must say, I thought this was a pretty interesting read when it comes to this topic. Liked the material. . . . . found in creations approved by sleepjunkie

imranuddin

I must say, I thought this was a pretty interesting read when it comes to this topic. Liked the material. . . . . online mens clothing Pakistan

devidmiller5060

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it. nordictrack e 7.0 z elliptical review

imranuddin

I read this article. I think You put a lot of effort to create this article. I appreciate your work. facebook

devidmiller5060

I read this article. I think You put a lot of effort to create this article. I appreciate your work. Security Plus Certification

devidmiller5060

Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing... men shirts in Pakistan

devidmiller5060

You have raised an important issue..Thanks for sharing..I would like to read more current affairs from this blog..keep posting.. MCSD Certification

mehakrudawa

Hey – great blog, just looking around some blogs, seems a really nice platform you are using. I’m currently using WordPress for a few of my blogs but looking to change one of them over to a platform similar to yours as a trial run. Anything in particular you would recommend about it? sleepjunkie adjusting sleep surface

devidmiller5060

Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing... mexican restaurants adelaide

shiprabrock

Easily, the article is actually the best topic on this registry related issue. I fit in with your conclusions and will eagerly look forward to your next updates. Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates. sleepjunkie.org

devidmiller5060

Hi there, I found your blog via Google while searching for such kinda informative post and your post looks very interesting for me. sleep issues and comfort concerns

hafridi

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it. ESR wheels

shiprabrock

wow, great, I was wondering how to cure acne naturally. and found your site by google, learned a lot, now i’m a bit clear. I’ve bookmark your site and also add rss. keep us updated. Security+ Salary

shiprabrock

Great post full of useful tips! My site is fairly new and I am also having a hard time getting my readers to leave comments. Analytics shows they are coming to the site but I have a feeling “nobody wants to be first”. XXR rims

gamekiller

GameKiller is an Android application which will help you to hack Offline. game killer download for pc

devidmiller5060

When I had decided to create blogs my time was tied up performing some other ventures however I knew that you could make some good cash with blogging and if you could find a niche that you could relate to then it can be profitable in the future College Scholarship blog

Thank you for sharing about

Thank you for sharing about the updates,I got confuse with some preventions i was getting before this article has helped me,Now i will rushessay and complete my assignment with ease,Looking forward to see more great post from you.

martingarix229

My friend mentioned to me your blog, so I thought I’d read it for myself. Very interesting insights, will be back for more! butterfly knife amazon

For First Packers and Movers

For Superlative Packers and

emporess mqh

Plus Size Swimwear | Swimsuits for Real Women swimsuits1 com - Swimsuits for Real Women plus size kimonoretro sexysport swim suitswhite underwire bikini topplus size monokinis swimwearcool lingeriepink swim suitswww lycra comcloreneathletic tankinireef bathing suitsbeach native swimwearhigh wastedruffle one piece swimsuitgothic rose swimsuits1 com/ > 34 suit size swimsuits1 com/swimsuits-for-all > catalina one piece swimsuits swimsuits1 com/Shore-Club-Vinatage-Floral-TieFront-Top > eminence club swimsuits1 com/Long-Torso-Swimwear-Design-Fit-Finder > long swimsuits swimsuits1 com/ > bathing suits for women swimsuits1 com/Longitude-Samurai-Plus-Size-X-Back-Swimsuit > samurai one piece swimsuits1 com/Shore-Club-Dive-Right-In-H-Back-Plus-Size-Swimdress > dive right swimsuits1 com/Chlorine-Resistant-Aquabelle-Black-Extra-Life-Lycra-Plus-Size-Boy-Short > boy short bathing suit bottoms swimsuits1 com/One-Piece-Swimwear-D > bandeau sarong swimwear swimsuits1 com/Plus-Size-Clearance-Swimwear-Sale > cheap retro swimsuit swimsuits1 com/ > coupon sizes swimsuits1 com/Core-Slimming-Swimwear-Design-Fit-Finder > slenderizing swimwear swimsuits1 com/Tropiculture-New-Blue-Brief > blue brief swimsuits1 com/swimsuits-for-all > la blanca bathing suits for women swimsuits1 com/Swim-Sexy-Swimwear-Shops-L > sext swimwear

racerback swimsuit women ufv

Plus Size Swimwear | Swimsuits for Real Women swimsuits1 com - Show more>>> sale one piecesexy swimsutbust enhancingbikinis fat peopleswimwear tankini saleplus size blouson swim topsmesh neckracing back swimsuitswhite bikinynicola sexyplus size swimwear retro styleunderwire bra top swimsuitsone piece swimsuits combinki sexytwisted cutout swimsuit swimsuits1 com/ > bikinis for fuller figure swimsuits1 com/Plus-Size-Swimwear > size 32 swimwear swimsuits1 com/Jessica-Simpson-Swimwear-Designers-L > jessica simpson plus size chart swimsuits1 com/All-aBoard-Shorts-Swimwear-Cover-Ups-D > matching board shorts swimsuits1 com/Shore-Club-Mai-Tai-Plain-Front-Halter-Boy-Shortini > mai tai club swimsuits1 com/Swim-Sexy-The-Beach-Babe-Gold-Bikini > black and gold bikini swimsuits1 com/All-aBoard-Shorts-Swimwear-Cover-Ups-D > women's swim trunks swimsuits1 com/High-Waist-Swimwear-Bikinis-D > white high waisted bikini bottoms swimsuits1 com/Core-Slimming-Swimwear-Design-Fit-Finder > slimmer suits swimsuits1 com/Plus-Size-Swimwear > plus size swin suit swimsuits1 com/Plus-Size-Board-Shorts-Swimwear-Cover-Ups-D > long swim pants plus size swimsuits1 com/Plus-Size-Separates-Swimwear-Separates-D > halter swimwear tops swimsuits1 com/Plus-Size-Clearance-Swimwear-Sale > plus size beachwear canada swimsuits1 com/Deep-Pink-Boho-Gold-Foil-Circle-Swirl-Kimono-Dress > kimono dresses for sale swimsuits1 com/Bikinis-Swimwear-D > bikins

The database has everything

The database has everything you wanted to learn about documentations. Maybe because of the confidentiality of it. - Bath Planet