mapserver raster documentation

John Mitchell mitchelljj98 at GMAIL.COM
Sun Dec 17 06:53:44 PST 2006


Frank,

The reason why I had:
OUTPUTFORMAT
   NAME png
   DRIVER "GD/PNG"
   MIMETYPE "image/png"
   IMAGEMODE RGB
   EXTENSION "png"
  END
listed was that for ECW files you had DRIVER "GDAL/JP2ECW" and I am
wondering if you need a special driver for Imagine format.

In the next few months I may have to ingest 2500 DVD's of GeoTiff imagery
data covering portions of the United States with each DVD contain 1 image of
about 1.1 GB in size.  In looking over the MapServer Raster documentation I
could do the following:

a.) Keep as GeoTiff format
     1.) Convert all the images from whatever their current projection is to
WGS84 using GDALWARP.
     2.) Build internal tiling to each GeoTiff image utilizing:
gdal_translate -co TILED=YES orig.tif tiled.tif
     3.) Build internal overviews using: gdaladdo -r average *.tif 2 4 8 16
32 64 128
     4.) Build external tiling using: gdal_index doq_index.shp doq/*.tif
This will link all the geotiff's in the doq folder to the doq_index.shp,
which then is referenced in tileindex within layer instead of DATA.
     5.) ?When using tile indexes to manage many raster files as a single
file, it is especially important to have a overview layer that kicks in at
high (should'nt this say low instead?) scales to avoid having to open a
large number of raster files.  Building external overviews use either
gdal_merge or gdalwarp (eg gdalwarp -rc -tr 250 250 doq/*.tif overview.tif)
The 250 within the gdalwarp statement means a output resolution of 250
meters?

b.) Convert from GeoTiff to Imagine format
     1.) Convert all the images from whatever their current projection is to
WGS84 using GDALWARP.
     2.) Mosaic all the GeoTiff's and convert to Imagine format using:
gdalwarp -of HFA doq/*.tif tiled.img
     3.) Build internal overviews using: gdaladdo -r average tiled.img 2 4 8
16 32 64 128

Which method would you recommend a or b as far as performance?

Thanks,

John J. Mitchell



On 12/16/06, Frank Warmerdam <warmerdam at pobox.com> wrote:
>
> John Mitchell wrote:
> > Hi,
> >
> > I have been reading over the mapserver raster documentation and I have a
> > few questions:
> >
> > 1.) It mentioned a 4 gb limit for GeoTiff files.  Is this for GeoTiff
> > files or that GeoTiff's can only be tiled up to 4 gb.  Is this 4 gb
> > limit an issue with mapserver or GeoTiff.
>
> John,
>
> The 4GB limit is inherent in TIFF, and it isn't specific to mapserver
> in any way.  Note that you can setup a tile index with my TIFF files
> smaller than 4GB.  There is no meaningful limit on the amount of data
> that can be in a tileindex.
>
> > 2.) Assuming the 4 gb GeoTiff limit then the GeoTiff would need to be
> > converted to Erdas Imagine (HFA) format.  The Documentation said that
> > the Imagine format is already Tiled.  Correct?
>
> Imagine format is inherently tiled, normally with 64x64 blocks.
>
> > 3.) Is the format the same to access an Imagine file as it is to access
> > a GeoTiff?  I have a sample .map segment that I use to access a GeoTiff:
>
> Yes, Imagine files are accessed the same way in mapserver as GeoTIFF files
> are.
>
> >  OUTPUTFORMAT
> >   NAME png
> >   DRIVER "GD/PNG"
> >   MIMETYPE "image/png"
> >   IMAGEMODE RGB
> >   EXTENSION "png"
> >  END
>
> I'm not sure why this OUTPUTFORMAT declaration is in your email.  It
> didn't
> seem to relate to the text of question 3.  But I will say that output
> formats
> is to some degree a distinct issue from input raster formats.
>
> Best regards,
> --
>
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | President OSGeo, http://osgeo.org
>
>


-- 
John J. Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20061217/a2a3c184/attachment.htm>


More information about the MapServer-users mailing list