[OSM-talk] setting up a new PostGIS server, now MapNik doesn't render PostGis data any more

Torsten Mohr tmohr at s.netic.de
Wed Mar 31 21:38:56 BST 2010


Hello,

> > Now Mapnik still renders GeoTIFF and Shapefiles, but no data that come
> > from PostGIS.  But also, normal SQL queries still work.
> 
> What is the setting of
> 
> <Parameter name="estimate_extent">
> <Parameter name="extent">

<Parameter name="estimate_extent">false</Parameter>
<Parameter name="extent">-20037508,-19929239,20037508,19929239</Parameter>

so it is a problem of the settings?  From googling it seems i need to
set extent to -180,-90, 180,89.99 ?


Do i also need to change the SRS?  At the moment it is set to:

+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 
+units=m +nadgrids=@null +no_defs +over


In some examples i only see:

+proj=latlong +datum=WGS84


Best regards,
Torsten.




More information about the talk mailing list