tilemill-project / tilemill

TileMill is a modern map design studio
https://tilemill-project.github.io/tilemill/
BSD 3-Clause "New" or "Revised" License
3.12k stars 527 forks source link

Trying to get backup of OSM tiles working #2525

Open lsces opened 9 years ago

lsces commented 9 years ago

With the current drive by others to radically change the OSM style sheets, I'm trying to get a backup server working so I can switch my own clients to that when it happens. I'm probably not starting from the best base, but have always used SUSE, currently with an nginx/php/firebird stack. I've finally got to a point where all the examples work, and the OSM style sheets load without an error, but rendering fails after "could not create converter for windows-1252" appears on the screen.

I'm quite pleased that the examples are working via nginx and I don't need the :20008 to see the tiles so something must be right ... it would just seem to be rendering OSM which has a problem.

lsces commented 9 years ago

Follow up ... ACTUALLY the problem is only with zoom levels 3 and 4. Switch to 5 and a nice map of the UK appears and I can access it right the way down :) So I just need to work out what is happening on 3&4 that it does not like to get those levels.

ajashton commented 9 years ago

The "could not create converter for windows-1252" error as well as the fact that it only occurs at zoom levels 3 and 4 suggests to me that this may be an issue with the Natural Earth shapefile used for city names at those zoom levels (which I believe is CP-1252 encoded). I've not seen this error before however and am not sure what the exact issue might be.

lsces commented 9 years ago

On 21/08/15 17:28, AJ Ashton wrote:

The "could not create converter for windows-1252" error as well as the fact that it only occurs at zoom levels 3 and 4 suggests to me that this may be an issue with the Natural Earth shapefile used for city names at those zoom levels (which I believe is CP-1252 encoded). I've not seen this error before however and am not sure what the exact issue might be.

I've limited the current set-up to level 5 so it's not a problem, but I think that the encoding of the shape files is a problem and Ill have another look later. For now I have a working set-up serving up tiles and just need to nail caching via the nginx server.

Lester Caine - G8HFL

Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

almccon commented 9 years ago

I'm having this issue recently, too.

It's being caused by ne_10m_populated_places_fixed.shp which appears to be related to this: https://github.com/mapnik/mapnik/issues/1605

almccon commented 9 years ago

Actually, @lsces, in my version of the openstreetmap-carto project.yaml file I deleted lines 1443 and 1447-1448, basically anything to do with windows-1252. And the file parses correctly and renders just fine.

https://github.com/gravitystorm/openstreetmap-carto/blob/master/project.yaml#L1443