[mapserver-users] Re: Raster dataset recommendations

Edi.Karadumi edikaradumi at gmail.com
Fri Feb 25 07:08:48 PST 2011


Since it as less than 4gb, if you have the image in different tiles just
merge them together. The image format should be tif.

1- Fisrt enable internal tiling with the command

gdal_translate -co "TILED=YES" original.tif tiled.tif 

2-than add overviews

gdaladdo -r average 2 4 8 16 32 64 128

3-create a tileindex

gdaltindex myindex.shp *.tif

4-than create a spatial index 

shptree myindex.shp

and finally add the layer to the map

LAYER
  NAME myorthos
  TYPE RASTER
  DUMP TRUE
  STATUS ON
  TILEINDEX ../data/myindex
  TILEITEM Location



-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-dataset-recommendations-tp6064491p6064777.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list