New layer GdalTileIndexRasterLayer

Topics: Data Access, SharpMap v0.9 / v1.x
Coordinator
Jan 17, 2014 at 8:51 PM
I've created a new layer in the 1.0 branch that will be release with the upcoming 1.1 release

GdalTileIndexRasterLayer supports reading and rendering tileindex files created for rasterdatasets with the gdal utilitiy gdaltindex-tool.

A tileindex is a shapefile that ties together several datasets into a single layer. Therefore, you don’t need to create separate layers for each piece of imagery or each county’s road data; make a tileindex and let SharpMap piece the mosaic together on the fly.

Making a tileindex is easy using gdaltindex for GDAL data sources (rasters). You just run the tool, specifying the index file to create and the list of data sources to add to the index.

For example, to make a mosaic of several TIFFs:

gdaltindex imagery.shp imagery/*.tif

For more information see: http://mapserver.org/optimization/tileindex.html

Big thanks til Triona AB (www.triona.se) for financing this functionality.