artemp/trac2github — Issue #681: Add bbox arg to mapnik.Gdal
Author: artemp
Created: 2011-10-09 20:46:48+00:00
State: open
Labels: GDAL_Input_Driver

I have some metatiles with extents between x=-180 and x=+180, and I want to render them into a map which may cross the antimeridian. (e.g. w=~170, e=~190)

The metatiles near x=-180 should show up in the map, even though their coordinates don't overlap this box.

The easy way to do this is to render each metatile twice, overriding bbox on the datasource so one gets shifted 360 degrees.

However for unrelated reasons I can't use the mapnik.Raster datasource, and mapnik.Gdal doesn't support bbox overriding.

I intend to add a bbox arg to mapnik.Gdal's constructor. If not specified, the bbox that gdal reads from the image will be used (current behaviour)