Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

Is there anyway that I can generate it automatically using raster dataset? I have a huge raster dataset to serve as WMS. Thanks in advance.

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
add comment

1 Answer

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 awaresystems.be/imaging/tiff/tifftags/docs/intergraph.html) 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
add comment

Your Answer

 
discard

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.