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

Hi, i follow the tutorial in https://switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/

When i do the command

renderd -f -c /usr/local/etc/renderd.conf

and send me this error

renderd[78029]: An error ocurred while loading the map layer 'default': Shape Plugin: shapefile '/usr/local/share/maps/style/osm-bright-master/shp/ne_10m_populated_places/ne_10m_populated_places.shp' does not exist encountered during parsing of layer 'ne_places' in Layer at line 45546 of '/usr/local/share/maps/style/OSMBright/OSMBright.xml'

Some hint to resolve this issue?

Regards

asked 16 Aug '16, 19:58

HugoLaraS1979's gravatar image

HugoLaraS1979
26113
accept rate: 0%

Does the file "ne_10m_populated_places.shp" exist in that location?

(16 Aug '16, 22:33) alester

I believe that what's happened is that the the "ne populated places" source has changed and the OSMBright script (which is Mapbox's) hasn't been updated to match it.

The last time I set up OSMBright was to answer this question, and do vaguely remember having to extract some shapefiles manually and move them around. I also did have to fiddle about with the script that I do use that does the same job. You should be able to figure out the data location from that, and manually move the shapefiles that you need to the right place. It's not ideal, but it should get you a working stylesheet.

permanent link

answered 16 Aug '16, 22:41

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

edited 16 Aug '16, 22:44

The line 45546 of OSMBright.xml is

<layer name="ne_places" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">

permanent link

answered 16 Aug '16, 20:00

HugoLaraS1979's gravatar image

HugoLaraS1979
26113
accept rate: 0%

edited 16 Aug '16, 20:01

is this an answer to your problem or just a clarification of your question?

(16 Aug '16, 21:48) aseerel4c26 ♦

For completeness, that's a reference to the layer name which references the file that isn't in the right place yet. That's why its saying error "at line 45546". The main useful bit of information is what you've said in the question:

'/usr/local/share/maps/style/osm-bright-master/shp/ne_10m_populated_places/ne_10m_populated_places.shp' does not exist

(16 Aug '16, 22:52) SomeoneElse ♦

As I was just testing my tile server I commented this lines to be able to run the tile server:

<Layer name="ne_places"srs="+proj=longlat +ellps=WGS84 +datum=WGS84+no_defs">                                                                                                                                                            
                                                                                                                                                                                                                    <Datasource>                                                                                                                                                                                                     
   <Parameter name="dbname"><![CDATA[osm]]><Parameter>                                                                                                                                                          
   <Parameter name="extent"><![CDATA[-20037508.34 -20037508.34 20037508.34 20037508.34]]><Parameter>                                                                                                            
   <Parameter name="file"><![CDATA[/usr/local/share/maps/style/osm-bright-master/shp/ne_10m_populated_places/ne_10m_populated_places.shp]]><Parameter>                                                          
   <Parameter name="srs"><![CDATA[+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over]]><Parameter>                                
   <Parameter name="type"><![CDATA[shape]]><Parameter>                                                                                                                                                          
<Datasource>                                                                                          <Layer>
permanent link

answered 25 Nov '16, 06:40

Potdeyaourt's gravatar image

Potdeyaourt
6123
accept rate: 0%

edited 25 Nov '16, 06:41

Your answer
toggle preview

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:

×105

question asked: 16 Aug '16, 19:58

question was seen: 4,864 times

last updated: 25 Nov '16, 06:41

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