Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am experiencing a problem with generating a granule index shapefile for the ImageMosaic plugin in GeoServer; there are no clear instructions to follow.

Is there any way that I can generate it automatically using a raster dataset? I have a huge raster dataset to serve as WMS.

share|improve this question
By the way, raster dataset is in geotiff format, Geoserver version is 2.1 (latest) – janobx Jan 11 '12 at 21:29

GDAL is, as always, your friend. And gdaltindex is the tool for the job. You would run it from a command prompt like this:

gdaltindex -skip_different_projection mosaic_index.shp my_raster_directory/*.tif
share|improve this answer
thanks for the comment. When I run the command line it is giving error like this "Warning 1: TIFFReadDirectory:Unknown field with tag 33918 (0x847e) encountered Warning 1: TIFFFetchNormalTag:ASCII value for tag "GeoASCIIParams" does not end". – janobx Jan 12 '12 at 0:49
That appears to be an Intergraph-specific tag (see that GDAL doesn't recognise. It shouldn't affect the output of the TIFF, and should be preserved verbatim. That it says "...does not end" may mean the source image is corrupt, but you can really only tell that by looking at the output. – MerseyViking Jan 12 '12 at 10:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.