Hi Martin

I tried that but it still had a memory errory.

In my map xml i pointed to the VRT and then in my python I had the following

#!/usr/bin/env python
import mapnik
mapfile = 'map.xml'
map_output = 'map.tif'
m = mapnik.Map(132000, 248000)
mapnik.load_map(m, mapfile)
bbox = mapnik.Box2d(mapnik.Coord(0, 0), mapnik.Coord(700000, 1300000))
m.zoom_to_box(bbox)
mapnik.render_to_file(m, map_output)

Should I be changing the map size or the box?

thanks



On 21 February 2012 15:42, Martin Koppenhoefer <[email protected]>wrote:

> Am 21. Februar 2012 16:07 schrieb tim martin <[email protected]>:
> > Hi
> >
> > I have been recommended to use Mapnik to combine two geotiffs, one
> > topogrpahic and one hillshade.
> >
> > I have managed to do this using an XML mapfile and a short python script,
> > just like in the tutorials.
> >
> > However, I need to create a geotiff output of 132000 by 248000 pixels,
> even
> > going above 6000 by 6000 i get an out of memory error.
> >
> > So the other way I think I could do it is run the geotiff+hillshade on
> the
> > smaller original geotiffs which are 4000 by 4000 each.
> >
> > However there are 2000 of them so how can I program mapnik to step
> through
> > each one rather than write 2000 entries in my map.xml file
>
>
> have a look at vrt (virtual raster tables) from GDAL.
>
> cheers,
> Martin
>
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to