On Sat, May 17, 2008 at 10:51 AM, Frederik Ramm <[EMAIL PROTECTED]> wrote: > Hi, > > Dave Stubbs wrote: >> >> You have the postgis inputs with the srs set to latlong, but you also >> have the estimate_extent off, and extent hardcoded to the (spherical) >> mercator coordinates... > > I *knew* I was being stupid ;-) > > Now it works, thanks a lot. (Also down again from 20 sec to 1 sec... the old > extent was probably the whole world which made things a bit slow.) > > I have one more question though. Specifying a geographic bbox *and* a > projection *and* a width/height is more than required I believe. Chances are > that if the result matches my projection and my geo bbox and the specified > width, it will not have the specified height (or vice versa). Does mapnik > deal with that in a well-defined way or should I make sure that the > width/height I request always matches the projection and bbox? >
Mapnik will always produce the image at the size you specify, the actual geographic area covered will be automatically adjusted to fit by either increasing the bbox height or width. ie: the geo bbox's aspect ratio is made to fit the image's. You should end up with the area you requested centred on the image. Dave _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

