On Thu, Mar 20, 2008 at 7:45 PM, Rahkonen Jukka
<[EMAIL PROTECTED]> wrote:
>     m = Map(imgx,imgy)
>     load_map(m,mapfile)
>     #prj = Projection("+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")
>     #prj = Projection("+proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 
> +x_0=3500000 +y_0=0 +ellps=intl 
> +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m")
>     #c0 = prj.forward(Coord(ll[0],ll[1]))
>     #c1 = prj.forward(Coord(ll[2],ll[3]))
>     #bbox = Envelope(c0.x,c0.y,c1.x,c1.y)
>     bbox = (3376400,6672200,3377400,6673200)

Well, as you noted below, this breaks because bbox should be an
Envelope and you gave it a list. Stick the constructor for Envelope
back in and that error goes away...

>  Both those alternatives did render a map but they were empty.
>  I have OSM data from Finland only in PostGIS. I believe that
>  somehow bounding box gets changed from the one i was giving.

The most reasonable possibiliy is that you got the projections in the
config file wrong. In particular the coordinates are interpreted in
terms of the projectopn defined in the top Map element and then
converted to the projection listed in the Layer element. Check that
both are correct (and that you don't have estimate extent on).

Also, I suggest you turn on statement logging on the database so you
can see what's actually being requested.

Have a nice day,
-- 
Martijn van Oosterhout <[EMAIL PROTECTED]> http://svana.org/kleptog/
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to