[Tile-serving] Question: Attempting to generate tiles in EPSG:4326 and getting Unknown projection string error

John-Paul Sitarski jsitarski at gmail.com
Thu Apr 28 21:40:43 UTC 2016


If this is not the correct list for questions, please let me know.

The goal:


I am attempting to generate map tiles with EPSG:4326 instead of web
mercator by specifying EPSG:4326 in the mapnik style file srs attributes


My current setup:


I am running Ubuntu 14.14 LTS and have followed the switch2osm.org
manually-building-a-tile-server-14-04 instructions. Using the default
projection, I was able to successfully import data and serve tiles to a
client.  I am using the stack of osm2pgsql, renderd, mapnik, mod_tile,
apache, postgres, and the OSM Bright stylesheet.

To import I used: osm2pgsql --slim -d gis -C 16000 --number-processes 3
mapdata.osm.pbf

Then to run renderd:  sudo -u mapnik renderd -f -c
/usr/local/etc/renderd.conf



After getting everything going with the basic configurations in the
tutorial, I started to attempt to serve tiles in 4326:

First I reimported the data with osm2pgsql using the -l flag: osm2pgsql -l
--slim -d gis -C 16000 --number-processes 3 mapdata.osm.pbf

I then updated the mapnik stylesheet map and layer srs attributes to match
what was defined in http://spatialreference.org/ref/epsg/4326/mapnik/

EG: srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"


When starting renderd I will then receive the error:

"Unknown projection string, using web mercator as never the less. +proj=longlat
+ellps=WGS84 +datum=WGS84 +no_defs"


I also attempted a few other options:

src="+init=epsg:4326"
src="+proj=longlat +datum=WGS84 +no_defs"



I was heading down the path that proj was not installed on my system, but I
do have it:

~$ proj

Rel. 4.8.0, 6 March 2012

usage: proj [ -beEfiIlormsStTvVwW [args] ] [ +opts[=arg] ] [ files ]


I have checked my /usr/share/proj/epsg file and it contains an entry:

# WGS 84

<4326> +proj=longlat +datum=WGS84 +no_defs  <>


Questions:


Do I need to configure mapnik or renderd somehow to be able to use proj?

Is my proj epsg file in an atypical location?

(I've seen references in wiki for troubleshooting
https://github.com/mapnik/mapnik/wiki/InstallationTroubleshooting#proj_init_error
to /usr/local/share/proj/epsg)

I have tried reinstalling proj to no change.

Is there any other information that would be useful?  Also, are there any
other methods I could attempt to use to get finer debugging?


Thank you in advance,
John-Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20160428/14835dec/attachment.html>


More information about the Tile-serving mailing list