Hi Philippe,

I'm pretty sure I helped you work through this problem on IRC after you sent 
this email. Can you send an email back with how things turned out?

For the benefit of others the problem was basically that the natural earth data 
often represents data stored in wgs 84 that is invalid for re-projecting to 
google mercator.

Thus, the data needs to be clipped, and I often do this with gdal 1.7's new 
-clipsrc functionality. This is described here:

http://trac.mapnik.org/wiki/Troubleshooting

Dane

On Oct 25, 2010, at 1:08 AM, Philippe Coent wrote:

> Hi,
> I would like to integrate graticules in my rendering.
> 
> My first thought was to use shape files available on naturalearthdata
> (http://www.naturalearthdata.com/downloads/110m-physical-vectors/) 
> 
> So I downloaded the files into world_boundaries directory , add a style
> and a layer in layer-shapefiles.xml.inc file:
> 
> <Style name="graticules">
>    <Rule>
>      <LineSymbolizer>
>        <CssParameter name="stroke">green</CssParameter>
>        <CssParameter name="stroke-width">2</CssParameter>
>      </LineSymbolizer>
>    </Rule>
> </Style>
> 
> <Layer name="graticules4" status="on" srs="&srs4326;">
>    <StyleName>graticules</StyleName>
>    <Datasource>
>      <Parameter name="type">shape</Parameter>
>      <Parameter 
> name="file">&world_boundaries;/110m_graticules_1.shp</Parameter>
>       <Parameter name="encoding">latin1</Parameter>
>    </Datasource>
> </Layer>
> 
> 
> The rendering is strange : http://burnosland.com/PERSO/BXN/mapnik/image.png 
> 
> Other rendering such as coastlines work correctly.
> 
> So I am wondering if the shape parameters are incorrect (srs and/or encoding) 
> or may
> be mapnik configuration ?
> 
> Philippe
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to