NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I am trying to install mapnik and generate tiles for a given country using this tutorial

http://weait.com/content/build-your-own-openstreetmap-server

But what a pity thing. Despite I have downloaded all boundary files and unpacked it , but a strange error is disturbing me to do it .

root@ks356390:/home/bin/mapnik# sudo ./generate_image.py Traceback
(most recent call last):   File "./generate_image.py", line 42, in
<module>
    mapnik.load_map(m,mapfile) RuntimeError:
/home/bin/mapnik/world_boundaries/10m_populated_places does not exist
(encountered during parsing of layer 'nepopulated')

but see ...

root@ks356390:/home/bin/mapnik# cd world_boundaries
Sie haben neue Post in /var/mail/root.
root@ks356390:/home/bin/mapnik/world_boundaries# ls
10m_populated_places                      places.shx
110m_admin_0_boundary_lines_land.dbf      processed_p.dbf
110m_admin_0_boundary_lines_land.prj      processed_p.index
110m_admin_0_boundary_lines_land.sbn      processed_p.shp
110m_admin_0_boundary_lines_land.sbx      processed_p.shx
110m_admin_0_boundary_lines_land.shp      shoreline_300.dbf
110m_admin_0_boundary_lines_land.shp.xml  shoreline_300.index
110m_admin_0_boundary_lines_land.shx      shoreline_300.shp
builtup_area.dbf                          shoreline_300.shx
builtup_area.index                        world_bnd_m.dbf
builtup_area.prj                          world_bnd_m.index
builtup_area.shp                          world_bnd_m.prj
builtup_area.shx                          world_bnd_m.shp
ne_10m_populated_places.dbf               world_bnd_m.shx
ne_10m_populated_places.prj               world_boundaries_m.dbf
ne_10m_populated_places.shp               world_boundaries_m.index
ne_10m_populated_places.shx               world_boundaries_m.prj
places.dbf                                world_boundaries_m.shp
places.prj                                world_boundaries_m.shx
places.shp root@ks356390:/home/bin/mapnik/world_boundaries#

I tried to make generate_image with sudo also... Any idea why mapnik is making this in ubuntu??????? It seems it doesn't see 10M nepopulated , despite the folder and files exist

asked 16 Sep '11, 07:25

Gevork's gravatar image

Gevork
234121422
accept rate: 0%

edited 16 Sep '11, 07:34

scai's gravatar image

scai ♦
33.3k21309459


You seem to have a directory or a file called 10m_populated_places. This is not right. What you need would look like this:

10m_populated_places.dbf
10m_populated_places.prj
10m_populated_places.shp
10m_populated_places.shx
permanent link

answered 16 Sep '11, 07:38

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

it seems inside the archive files start with ne_ like ne_10m_....

http://tinypic.com/view.php?pic=wa6bg0&s=7

Maybe this is the problem. I will try now to rename them all...and will vote for you :)))

(16 Sep '11, 07:48) Gevork

hi, I also experienced a Runtime Error, but the problem is like this:

dewi@dewi-laptop:/src/bin/planet/mapnik-stylesheets$ ./generate_image.py Traceback (most recent call last): File "./generate_image.py", line 42, in <module> mapnik.load_map(m,mapfile) RuntimeError: This map uses features only present in Mapnik version 0.7.1 and newer (in node Map)

thank's

permanent link

answered 05 Jan '12, 09:16

Dewi%20Robiatul%20mubararah's gravatar image

Dewi Robiatu...
1
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×341
×287
×37

question asked: 16 Sep '11, 07:25

question was seen: 8,032 times

last updated: 05 Jan '12, 09:16

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum