You are not logged in.

#1 2007-06-03 13:59:26

Thorir Mar
Member
Registered: 2007-06-03
Posts: 2

Using planet.osm

I created my first garmin .img file yesterday using mkgmap.  I used JOSM to download the area I've been mapping in Reykjavik for this first test, and I'm happy to say it worked perfectly.  Now I want to try my hands at larger areas.  I will be traveling to Denmark and Sweden next week, and would like to try to create an .img file for all of Scandinavia to take with me.  This is obviously to large an area to download and save via JOSM, so I went ahead and downloaded planet.osm ... and that's where I got stuck.

I can't seem to find any simple way to extract specific areas from planet.osm.  I'm sure there are some clever tools available, but so far I have been unable to locate them.

I run Ubuntu 6.10 and would prefer to do this on that platform, but I do have access to a windows box if that is needed.

Best regards,
Þórir Már

Offline

#2 2007-06-03 14:18:51

Lambertus
Administrator
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 3,269
Website

Re: Using planet.osm

Hello Thorir, welcome! Good to see you've come that far already... seems like OSM has gained another contributor.

There are some tools to extract data from the planet file in the SVN repository. The OSM-extract utility is what you're looking for, as it can extract a certain portion of the world. It is written in Perl so it should work fine on your Linux box.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#3 2007-06-03 14:42:25

Jacob Bax
Member
From: N51 50 26.8 E4 58 53.7
Registered: 2007-05-20
Posts: 17
Website

Re: Using planet.osm

When you made a map for the garmin 60CSx with mkgmap, do you then just have to rename the 6xxxxxxx.img file to gmapsupp.img?

Is there also a way to view the map first in Mapsource?

Last edited by Jacob Bax (2007-06-03 14:45:51)

Offline

#4 2007-06-03 14:52:52

Lambertus
Administrator
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 3,269
Website

Re: Using planet.osm

Jacob Bax wrote:

When you made a map for the garmin 60CSx with mkgmap, do you then just have to rename the 6xxxxxxx.img file to gmapsupp.img?

Yup.

Is there also a way to view the map first in Mapsource?

Afaik, nope.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#5 2007-06-03 19:24:56

Thorir Mar
Member
Registered: 2007-06-03
Posts: 2

Re: Using planet.osm

Hello Lambertus, thanks for the quick reply.

I'm afraid I need some more help with this script.  When I try to run the script I get the following:

tiny@lappi:~/svn.openstreetmap.org/applications/utils/osm-extract$ ./planetosm-excerpt-area.pl
Can't locate File/Slurp.pm in @INC (@INC contains: /home/tiny/svn.openstreetmap.org/applications/utils/perl_lib ~/svn.openstreetmap.org/applications/utils/perl_lib ../../perl_lib ./perl_lib /perl /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/tiny/svn.openstreetmap.org/applications/utils/perl_lib/Geo/OSM/Planet.pm line 23.
BEGIN failed--compilation aborted at /home/tiny/svn.openstreetmap.org/applications/utils/perl_lib/Geo/OSM/Planet.pm line 23.
Compilation failed in require at ./planetosm-excerpt-area.pl line 23.
BEGIN failed--compilation aborted at ./planetosm-excerpt-area.pl line 23.

Is this even the correct way to run the script? I'm sure I need to add some arguments to it (like the location of the planet.osm, and what area I desire to extract).  How do I do this?

Offline

#6 2007-06-03 19:31:46

Lambertus
Administrator
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 3,269
Website

Re: Using planet.osm

Sorry, never used any of those scripts (I should though...). Anyway, there is a wiki page about excerpt-area.

You might also be interested in: http://wiki.openstreetmap.org/index.php/Planet.osm

If those links don't help you then your best bet is to contact the talk mailing list or the IRC channel.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

Board footer

Powered by FluxBB