On Jul 11, 2011, at 6:08 AM, M∡rtin Koppenhoefer wrote: > 2011/7/7 Dane Springmeyer <[email protected]>: >> On Jul 7, 2011, at 2:16 PM, Mark Vahrenwald wrote: >> Generally if you have more than one shapefile you want to show, then you >> would create another layer definition for that datasource. As mapnik >> supports named styles you would then be able to create one style and apply >> that style to all the layers needed. >> Generally hundreds of layers in an XML is still quite fast (after the >> initial XML load is finished) because each layer's individual bounding box >> will be cached by mapnik and when rendering only those layers that intersect >> with a tile's extent will be queried. 1000's of layers would also likely >> work fine rendering if you could script the creation of the map document. > > > thank you for this explanation Dane. Is the same valid for rasters > integrated with gdal as well?
Yes, it should - startup time for gdal rasters might be a bit longer than shapefiles, but their metadata should also be read only once and cached, so that futher renders (if using the same map object) should be quite fast. > Or would you suggest to use gdal-vrt for > several rasters? GDAL VRT's can be useful for handling blending at seams of rasters, and yes can be quite useful for managing many rasters, but should not be necessary if just speed is your concern. > I am using 8 big tiffs covering the world (ranging > from -180/0 to -90/90 etc.) but I experience very long rendering times > for these (up to almost an hour for a metatile in Z6/7). Sounds like you need to build overviews. Look for the gdaladdo tool. It is absolutely necessary to use overviews if your rasters are large. > > Cheers, > Martin _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

