<Layer name="roads" status="on" srs="+proj=longlat +ellps=WGS84
+datum=WGS84 +no_defs">
<StyleName>roads-casing</StyleName
<StyleName>roads</StyleName>
<Datasource>
......
<Parameter name="extent">779236,5942077,890555,19044</Parameter>
</Datasource>
</Layer>
Is your OSM data in longlat in postgis ? Because your extent seems to
be in Mercator . You can check in psql:
=# select extent(way) from planet_osm_roads;
I suggest you change srs for the layer above 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 [EMAIL PROTECTED] +no_defs +over
and see if this helps.
Also, be aware that some styles only active for particular scale range.
Artem
On 20 Feb 2008, at 12:09, Carl Heinze wrote:
> I changed to the settings for bounding Box as you suggested -
> nothing changed, I still get just the image with backround and
> without any rendering..
>
> Carl
> -------- Original-Nachricht --------
>> Datum: Wed, 20 Feb 2008 10:54:53 +0000
>> Von: Artem Pavlenko <[EMAIL PROTECTED]>
>> An: Carl Heinze <[EMAIL PROTECTED]>
>> CC: [email protected]
>> Betreff: Re: [Mapnik-users] Postgis-Data not rendered
>
>>>
>>> ll = (7.0, 47.5, 8, 47.6)
>>>
>>> #---------------------------------------------------
>>>
>>> z = 10
>>> imgx = 500 * z
>>> imgy = 1000 * z
>>>
>>> m = Map(imgx,imgy)
>>> load_map(m,mapfile)
>>> prj = Projection("+proj=longlat +ellps=WGS84 +datum=WGS84
>>> +no_defs")
>>> c0 = prj.forward(Coord(ll[0],ll[1]))
>>> c1 = prj.forward(Coord(ll[2],ll[3]))
>>
>>
>> OK, you bounding box coordinates in Geographical (lat/lon) projection
>> already, no need to project them again :
>>
>>
>> bbox = Envelope(ll[0],ll[1],ll[2],ll[3])
>> m.zoom_to_box(bbox)
>> im = Image(imgx,imgy)
>> render(m, im)
>> view = im.view(0,0,imgx,imgy) # x,y,width,height
>> view.save(map_uri, 'png')
>>
>>
>> HTH
>> Artem
>
> --
> GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
> Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]
> _______________________________________________
> 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