OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#1 2008-09-09 14:54:59

schokochris
Member
Registered: 2008-09-09
Posts: 4

Newbie - how to make large maps offline available

Hello!

I am a enjoying the use of OSM when i am online, but i was wondering if I can use the service offline. I will be travelling from New York to Miami and would love to have a streetmap on my EEEPC with WinXP (I use Kubuntu at work but I am still fond of many things that are easier with Windows ).
I already downloaded a osm file on my external disk for the state of New York, but JOSM tells me the file cannot be loaded because only 64 MB are reserved for JOSM. With Mercatoor the file will be loaded, but at whole - that means 3 GB in Working memory and takes ages to open.

With which tool can I query an OSM file only on certain extracts or make such large maps easily visible?

I was thinking about installing little-OSM but it seems that only Linux is supported ...

Thanks for your support!

Christian

Offline

#2 2008-09-09 15:45:33

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

Re: Newbie - how to make large maps offline available

Both JOSM and Merkaator don't seem like the best solution for loading an entire US state just to look at it. Unless you want to also be able to edit the data I suggest you look at one of the routeplanners to guide you during your trip. Gosmore is certainly capable of handling the amount of data and I guess Pyroute would too. You can find more about these in the wiki. Also look at the routing wiki page, tons of interesting stuff there.

BTW: You can load more data into a JAVA application like JOSM by starting it with a special commandline option. E.g. the following command will give 1GB to JOSM:

java -Xmx1024m -jar josm-latest.jar

Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#3 2008-09-09 17:42:41

schokochris
Member
Registered: 2008-09-09
Posts: 4

Re: Newbie - how to make large maps offline available

Thanks Lambertus for your reply. Unfortunately Gosmore will not install properly on WinXP. I downloaded http://nroets.openhost.dk/gosmore.zip. After extracting and starting gosmore.exe an alert shows up "cannot read gosmore.pak - you can (re)build it from the planet file". I looked up that phrase but couldn't find any further advice.

Is there a work around or other tools?

Thanks

Offline

#4 2008-09-09 19:13:06

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

Re: Newbie - how to make large maps offline available

Gosmore is installed properly, you just need to build a database for it from OSM data (the PAK file is it's database). What you need to do is to download the OSM data (or extract it from a planet file) for the area that you're interested in and convert the OSM data using 'gosmore rebuild'. If this area is an entire US state then I suggest you go here, there are readymade state extracts available.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#5 2008-09-10 16:19:27

schokochris
Member
Registered: 2008-09-09
Posts: 4

Re: Newbie - how to make large maps offline available

Thanks. I kind of feel dumb but i cannot find a documentation for windows for gosmore.
I downloaded a bzip2 file from cloudmade and extracted it - first using 7zip later with bzip2.
If I use

gosmore rebuild new_york.osm or
gosmore build new_york.osm

or any other command line argument I always get

Cannot read gosmore.pak
You can (re)build it from
the planet file e.g. bzip2 -d planet-...osm.bz2 | gosmore rebuild

Well i believe there is no pipe in windows cmd or is there? I tried it anyways but without luck.

Last edited by schokochris (2008-09-10 16:33:58)

Offline

#6 2008-09-10 16:46:53

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

Re: Newbie - how to make large maps offline available

There is a little info about building a database and about windows on the Gosmore wiki page.

[....deleted some nonsense....]

Will you also report back if it worked, so the wiki page can be updated? Thanks in advance.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#7 2008-09-10 18:45:33

schokochris
Member
Registered: 2008-09-09
Posts: 4

Re: Newbie - how to make large maps offline available

I would like to give a postive answer but this does not work either ... i think the ">" is not the "|" pipe, but does the same as in a shell - write standard output to a file - in this example gosmore.

http://commandwindows.com/command1.htm - shows all symbols for windows - nice to know but the same as in linux..

neither < nor | nor > work ...

Last edited by schokochris (2008-09-10 18:46:14)

Offline

#8 2008-09-10 19:35:09

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

Re: Newbie - how to make large maps offline available

schokochris wrote:

I would like to give a postive answer but this does not work either ... i think the ">" is not the "|" pipe, but does the same as in a shell - write standard output to a file - in this example gosmore.

http://commandwindows.com/command1.htm - shows all symbols for windows - nice to know but the same as in linux..

neither < nor | nor > work ...

Oops, big oops on my part..  sorry about that.

So let's try something else: do you have a linux machine somewhere? Perhaps you can create the database file there and copy it to Windows. As long as both versions are 32bit or both are 64bit and use the same endianness then that might work.

Alternatively, you can also have a look at any of the other routing applications on the page that I mentioned before or even Kosmos.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#9 2008-09-11 08:11:36

emj
Member
From: .se (59.3N17.99E) 0735969076
Registered: 2006-06-18
Posts: 949

Re: Newbie - how to make large maps offline available

I'll see if I can rebuild the http://downloads.cloudmade.com/north_am … rk.osm.bz2 image for you later to day.

Offline

#10 2008-09-22 18:53:47

SteveMatt
Member
Registered: 2008-09-22
Posts: 1

Re: Newbie - how to make large maps offline available

GPSSC ver 8 can load fairly large maps in the Track Editor view.

It's not as pretty as the online maps but worth a look and runs on XP.

There's some sample screen shots at http://www.stevematt.f9.co.uk/ukspeedcamera/tedit.html

Steve

Offline

#11 2008-09-23 19:36:56

saharadesertfox
Member
Registered: 2008-07-01
Posts: 64

Re: Newbie - how to make large maps offline available

Another alternative ist to install Garmins MapSource Version 6.13.7(!!!) http://www8.garmin.com/software/MapSource_6137.exe Then download http://emexes.powweb.com/osm/download.html any Map and install it. MapSource has no Memory-Problem! Do not update MapSource, otherwise the maps will not work!

Offline

#12 2008-09-24 11:10:25

emj
Member
From: .se (59.3N17.99E) 0735969076
Registered: 2006-06-18
Posts: 949

Re: Newbie - how to make large maps offline available

btw I did build it for New York, I can sedn it to you if you want.

Offline

#13 2008-10-12 03:06:48

plusminus
Member
Registered: 2008-09-22
Posts: 9

Re: Newbie - how to make large maps offline available

Hi guys,

I also couldn't get it to work under windows (vista32):

D:\Programme\dev\OSM\gosmore>gosmore.exe build bw.osm
Cannot read gosmore.pak
You can (re)build it from
the planet file e.g. bzip2 -d planet-...osm.bz2 | gosmore.exe rebuild

where bw.osm is directly in the same folder as gosmore. hmm

Additional question:
How to make gosmore.exe output the calculated route?

Simply call the exe with the coords behind ?

In the end I want to make the data accessible through the web:

Is there another way than setting the QUERY_STRING environment variable ?

Cgi Routing Interface

Set the QUERY_STRING environment variable to e.g. "flat=-33.928889&flon=18.417222&tlat=-25.778618&tlon=28.290682&fast=0&v=motorcar" and run the executable. The parameters must be in this exact order.

Best Regards,
Nicolas

Offline

#14 2008-10-12 12:27:48

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

Re: Newbie - how to make large maps offline available

plusminus wrote:

I also couldn't get it to work under windows (vista32):

D:\Programme\dev\OSM\gosmore>gosmore.exe build bw.osm
Cannot read gosmore.pak
You can (re)build it from
the planet file e.g. bzip2 -d planet-...osm.bz2 | gosmore.exe rebuild

where bw.osm is directly in the same folder as gosmore. hmm

Rebuild the Gosmore db using the rebuild not build wink

Additional question:
How to make gosmore.exe output the calculated route?

Simply call the exe with the coords behind ?

Nope, you have to use the QUERY_STRING environment variable

In the end I want to make the data accessible through the web:

Have you found YourNavigation.org already? That site is using Gosmore as the routing backend.

Is there another way than setting the QUERY_STRING environment variable ?

Nope.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#15 2008-10-12 14:31:15

plusminus
Member
Registered: 2008-09-22
Posts: 9

Re: Newbie - how to make large maps offline available

Hello Lambertus,

I also tried it with 'rebuild' and by piping, no success. I'll try it on a UbuntuVM now, as it may be a windows issue.

Best Regards,
Nicolas

Offline

#16 2008-10-12 18:36:45

plusminus
Member
Registered: 2008-09-22
Posts: 9

Re: Newbie - how to make large maps offline available

So i got it almost working in a VM (Ubuntu 8.04) (all packages installed) but receive an error:

jars@jars-desktop:~/Desktop/OSM/gosmore$ bzip2 -d bw.osm.bz2 | ./gosmore rebuild 
  1 while (xmlTextReaderRead (xml))
:1: parser error : Extra content at the end of the document

^

At that point the program hangs and I have to exit it with CTRL+C
The bw.xml ends with the tag:

</osm>

Note: I'm not working with the complete planet.osm, but with a small part: 'http://download.geofabrik.de/osm/europe … rg.osm.bz2'. May this be the problem?

2nd question: Is the output of ( http://yournavigation.org/gosmore.php ) the same that I can expect in my installation of gosmore? (So I can already start writing a parser)

Best Regards,
Nicolas

Offline

#17 2008-10-12 22:47:13

emj
Member
From: .se (59.3N17.99E) 0735969076
Registered: 2006-06-18
Posts: 949

Re: Newbie - how to make large maps offline available

use  "bzip2 -dc" instead

Offline

#18 2008-10-13 02:54:19

plusminus
Member
Registered: 2008-09-22
Posts: 9

Re: Newbie - how to make large maps offline available

Thx, I think I got it working (?):

486 for (pairs = 0; pairs < PAIRS && s2grp < S2GROUP (0) + S2GROUPS; )
487 for (pairs = 0; pairs < PAIRS && s2grp < S2GROUP (0) + S2GROUPS; )
488 for (pairs = 0; pairs < PAIRS && s2grp < S2GROUP (0) + S2GROUPS; )
489 for (pairs = 0; pairs < PAIRS && s2grp < S2GROUP (0) + S2GROUPS; )
490 for (pairs = 0; pairs < PAIRS && s2grp < S2GROUP (0) + S2GROUPS; )
491 for (unsigned i = 0; i < cycleNet.size (); i++)
492 while (fread (&ndWrite, sizeof (ndWrite), 1, pak) == 1)
493 for (int i = 0; i < IDXGROUPS; i++)
./gosmore is in the public domain and comes without warrantee

And there is a gosmore.pak created. smile

Should this be updated in the wiki ?

Best Regards,
Nicolas

Last edited by plusminus (2008-10-13 02:54:38)

Offline

#19 2008-10-13 09:23:44

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

Re: Newbie - how to make large maps offline available

plusminus wrote:

2nd question: Is the output of ( http://yournavigation.org/gosmore.php ) the same that I can expect in my installation of gosmore? (So I can already start writing a parser)

No, the gosmore.php wraps the csv output from Gosmore into a generic web format (KML).

plusminus wrote:

Thx, I think I got it working (?):

486 for (pairs = 0; pairs < PAIRS && s2grp < S2GROUP (0) + S2GROUPS; )
487 for (pairs = 0; pairs < PAIRS && s2grp < S2GROUP (0) + S2GROUPS; )
488 for (pairs = 0; pairs < PAIRS && s2grp < S2GROUP (0) + S2GROUPS; )
489 for (pairs = 0; pairs < PAIRS && s2grp < S2GROUP (0) + S2GROUPS; )
490 for (pairs = 0; pairs < PAIRS && s2grp < S2GROUP (0) + S2GROUPS; )
491 for (unsigned i = 0; i < cycleNet.size (); i++)
492 while (fread (&ndWrite, sizeof (ndWrite), 1, pak) == 1)
493 for (int i = 0; i < IDXGROUPS; i++)
./gosmore is in the public domain and comes without warrantee

And there is a gosmore.pak created. smile

Yes, the Gosmore database rebuild was successfully completed.

Should this be updated in the wiki ?

If you will, please.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#20 2009-06-02 19:46:40

fx99
Member
From: Baden-Württemberg
Registered: 2009-06-02
Posts: 1,473

Re: Newbie - how to make large maps offline available

Verstehe ich das ganze richtig?

Es ist keinem hier gelungen, unter Window das gosmore.pak zu erzeugen?

Der Umweg über Linux erscheint mir etwas kompliziert!

Offline

#21 2009-06-02 20:03:29

fx99
Member
From: Baden-Württemberg
Registered: 2009-06-02
Posts: 1,473

Re: Newbie - how to make large maps offline available

Sorry, I switched over to German.

So again, in English!
Do I understand the discussion correctly: Nobody in this thread has ever successfully build a
gosmore.pak file under windowsXP?

Offline

#22 2009-06-03 09:32:15

JRA
Member
Registered: 2007-12-17
Posts: 664

Re: Newbie - how to make large maps offline available

Hi,

If you could tolerate using a non-OSM specific software then some GIS program with real-time GPS connection might be an option.  I had a try with QGis and it  opens fine all the shapefiles of England (downloaded from geofabrik.de, total filesize some 200 MB, QGis memory consumption after loading the files 50 MB).  Screen is updated very soon when zoomed a little bit closer, but just after creating spatial index for the shapefiles with gdal/ogr shptree utility.  QGis is missing real-time GPS plugin yet, but such is under development and it may already work well enough, see http://n2.nabble.com/Real-Time-GPS-Plug … l#a2912921
I haven't tried the plugin myself.

Offline

#23 2010-01-13 09:44:31

Jhelebrant
Member
Registered: 2010-01-13
Posts: 2

Re: Newbie - how to make large maps offline available

Hi guys,
I would also like to have the maps available offline. So, you say that optimal viewer for OSM data would be Gosmore but there is no way to use it under windows because of the pak file.

I use some shapefiles from Geofabrik in QGIS, but using it only for maps is not much comfortable - for example because searching places is done through attribute tables etc., also the file loading is not so quick. Current Qgis also has some OSM extension, but did not tried yet.

Has anybody an experience with some good and simple map viewer? I need only something for map viewing and serching - similar functionality as Openstreetmap website, GPS not needed. I am running win XP, but if it was also for linux, would be nice as my brother is running PclinuxOS.

Currently thinking about Thuban:
http://thuban.intevation.org/index.html
which looks promising

Offline

#24 2010-01-13 10:17:03

Martin Goose
Member
Registered: 2009-09-28
Posts: 14

Re: Newbie - how to make large maps offline available

I run PCLinuxOS on a desktop PC and Acer Aspire One netbook. I use TangoGPS <http://www.tangogps.org/gps/cat/About> on the netbook.  The website says:

"The maps are automagically downloaded and cached for offline use while you drag or zoom the map. Furthermore you can conveniently pre-cache areas with tangoGPS."

Pre-caching maps would seem to meet your needs.

Offline

#25 2010-01-13 17:38:07

stephan75
Member
Registered: 2008-05-28
Posts: 2,741

Re: Newbie - how to make large maps offline available

Offline

Board footer

Powered by FluxBB