Discussion:
[OSM-dev] World Boundaries for Rendering with mapnik
Joerg Ostertag (OSM Munich/Germany)
17 years ago
Permalink
I had a look at
http://wiki.openstreetmap.org/index.php/Mapnik#World_Boundaries

Section:
World Boundaries
Mapnik uses external data for coastlines at lower zoom levels. See Coastlines#Mapnik
$ wget http://tile.openstreetmap.org/world_boundaries-spherical.tgz (51MB)
$ wget http://hypercube.telascience.org/~kleptog/processed_p.zip (~200MB)

But doing a
wget http://tile.openstreetmap.org/world_boundaries-spherical.tgz
results in
http://tile.openstreetmap.org/world_boundaries-spherical.tgz:
2008-05-10 23:16:16 ERROR 404: Not Found.

And on the other hand I'd like to know which of the two is needed? Or do I
need both. I'm just trying to update the debian package
openstreetmap-mapnik-world-boundaries
Since the old one no longer seems to work with the current mapnik and osm.xml

I found this by stating gpsdrive and got the following error:
...
Mapnik convert: 'build/scripts/mapnik/osm-template.xml' ----> '/home/tweety/.gpsdrive/osm.xml'
Mapnik convert Username: tweety
Mapnik convert to '/home/tweety/.gpsdrive/osm.xml' done.
datasource_cache::instance()->register_datasources(/usr/lib/mapnik/0.5/input/)
freetype_engine::register_font(/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf)
mapnik::load_map('/home/tweety/.gpsdrive/osm.xml')
got exception ...
terminate called after throwing an instance of 'std::ios_base::failure'
what(): failed opening file: Bad file descriptor

I then did
strace -f -F -o gpsdrive.strace ./build/src/gpsdrive -T -s -D 111 -C tests/gpsdriverc
grep ENOENT gpsdrive.strace | tail
...
And saw one of the problems:
25824 open("/usr/share/mapnik/world_boundaries/world_boundaries_m.index", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
25824 open("/usr/share/mapnik/world_boundaries/processed_p.shp", O_RDONLY) = -1 ENOENT (No such file or directory)
--
J?rg (Germany, Tettnang)

http://www.ostertag.name/
irc://irc.oftc.net/#osm
Tel.: +49 89 420950304
Skype: JoergOstertag
Martijn van Oosterhout
17 years ago
Permalink
On Sat, May 10, 2008 at 11:23 PM, Joerg Ostertag (OSM Munich/Germany)
Post by Joerg Ostertag (OSM Munich/Germany)
Mapnik uses external data for coastlines at lower zoom levels. See Coastlines#Mapnik
$ wget http://tile.openstreetmap.org/world_boundaries-spherical.tgz (51MB)
$ wget http://hypercube.telascience.org/~kleptog/processed_p.zip (~200MB)
And on the other hand I'd like to know which of the two is needed? Or do I
need both.
Both, one set is for high zoom levels, the other is for lowzoom levels.

Have a nice day,
--
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/
Joerg Ostertag (OSM Munich/Germany)
17 years ago
Permalink
...
wow this will get a large debian package ...

and where can I get the current world_boundaries-spherical.tgz
--
J?rg (Germany, Tettnang)

http://www.ostertag.name/
irc://irc.oftc.net/#osm
Tel.: +49 89 420950304
Skype: JoergOstertag
Joerg Ostertag (OSM Munich/Germany)
17 years ago
Permalink
Post by Martijn van Oosterhout
On Sat, May 10, 2008 at 11:23 PM, Joerg Ostertag (OSM Munich/Germany)
Post by Joerg Ostertag (OSM Munich/Germany)
Mapnik uses external data for coastlines at lower zoom levels.
See Coastlines#Mapnik $ wget
http://tile.openstreetmap.org/world_boundaries-spherical.tgz (51MB) $
wget http://hypercube.telascience.org/~kleptog/processed_p.zip (~200MB)
Now that these two are downloading; I'm looking for the source of
world_bnd_m.shp

--

Joerg
Jon Burgess
17 years ago
Permalink
Post by Joerg Ostertag (OSM Munich/Germany)
But doing a
wget http://tile.openstreetmap.org/world_boundaries-spherical.tgz
results in
2008-05-10 23:16:16 ERROR 404: Not Found.
Works for me...

wget http://tile.openstreetmap.org/world_boundaries-spherical.tgz
--01:03:22-- http://tile.openstreetmap.org/world_boundaries-spherical.tgz
=> `world_boundaries-spherical.tgz'
Resolving tile.openstreetmap.org... 128.40.58.204
Connecting to tile.openstreetmap.org|128.40.58.204|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52,857,349 (50M) [application/x-gzip]

1% [ ] 719,260 131.59K/s ETA 06:56c
--
Jon
Joerg Ostertag (OSM Munich/Germany)
17 years ago
Permalink
I managed to download the Files now.

So the new debian-package
openstreetmap-mapnik-world-boundaries (282MB )
is out on the debian repository
http://www.gpsdrive.de/debian

With Version
openstreetmap-mapnik-world-boundaries_7750_all.deb
all necessary coastline/world-boundaries should be included.


PS.: One source is still missing; I still had a local copy, but I dont know
where to officially get it:
4145601 May 11 10:59 /usr/share/mapnik/world_boundaries/world_bnd_m.dbf
250968 May 11 10:59 /usr/share/mapnik/world_boundaries/world_bnd_m.index
355 May 11 10:59 /usr/share/mapnik/world_boundaries/world_bnd_m.prj
48495316 May 11 10:59 /usr/share/mapnik/world_boundaries/world_bnd_m.shp
249444 May 11 10:59 /usr/share/mapnik/world_boundaries/world_bnd_m.shx
So I don't know if they are old or up-to-date.


--

Joerg
Jon Burgess
17 years ago
Permalink
...
Those should be part of the world_boundaries-spherical.tgz archive...

$ tar tzvf world_boundaries-spherical.tgz |grep world_bnd_m
-rw-r--r-- jburgess/jburgess 249444 2007-03-09 11:32
world_boundaries/world_bnd_m.shx
-rw-r--r-- jburgess/jburgess 4145601 2007-03-09 11:31
world_boundaries/world_bnd_m.dbf
-rw-r--r-- jburgess/jburgess 48495316 2007-03-09 11:32
world_boundaries/world_bnd_m.shp
-rw-r--r-- jburgess/jburgess 355 2007-03-09 11:31
world_boundaries/world_bnd_m.prj
-rw-r--r-- jburgess/jburgess 250968 2007-09-09 20:28
world_boundaries/world_bnd_m.index
--
Jon
Loading...