[mapserver-users] Help Serving Tiled Tiffs

Daniel Walton dgwalton at gmail.com
Sat Oct 3 14:30:53 PDT 2009


Thanks to all of you who've been helping me learn the ropes. I am getting
close (I hope) to being able to serve up on-the-fly-generated remote sensing
imagery using GDAL and MS. I am using the latest MS4W distribution with GDAL
1.6. I have taken Tiff images and tiled and created overviews using Frank's
suggestions:
gdal_translate -co TILED=YES in.tif out.tif
gdaladdo out.tif 2 4 8 16 32 64
When I request an image using a web browser like:
http://localhost/cgi-bin/mapserv.exe?map=R:\Temp\Test\A091003033655.map&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&
SRS=EPSG:4326&BBOX=36.141921,-121.788916,36.324769,-121.565064&FORMAT=image/tiff&WIDTH=256&HEIGHT=256&STYLES=&LAYERS=TEST_SWIR_TILED
all I get is a white image. The BBOX parameter is the same as my mapfile
extents, which is the same as the imagery bounds. The projections are the
same as well (EPSG 4326).

Questions:

   1. Can I pull up an image this way in a browser (using FF 3.5)
   2. If so, what am I doing wrong?
   3. What are some other points of validation I can perform to break down
   the testing a bit more?
   4. What needs to be done to be able to view the WMS images in Google
   Earth or ArcGIS explorer (e.g. adding querystring arguments via a proxy
   handler, etc?)

Thanks again MS community. I look forward to someday joining the ranks.

-Dan


My Mapfile looks like this:

MAP
  EXTENT 36.141921 -121.788916 36.324769 -121.565064
  IMAGECOLOR 255 255 255
  IMAGETYPE gif
  SIZE -1 -1
  STATUS ON
  UNITS DD
  NAME "MS"
  OUTPUTFORMAT
    NAME "GTiff"
    MIMETYPE "image/tiff"
    DRIVER "GDAL/GTiff"
    EXTENSION "tif"
    IMAGEMODE "RGB"
    TRANSPARENT FALSE
  END
  PROJECTION
    "proj=longlat"
    "ellps=WGS84"
    "datum=WGS84"
    "no_defs"
  END
  LEGEND
    IMAGECOLOR 255 255 255
    KEYSIZE 20 10
    KEYSPACING 5 5
    LABEL
      SIZE MEDIUM
      TYPE BITMAP
      BUFFER 0
      COLOR 0 0 0
      FORCE FALSE
      MINDISTANCE -1
      MINFEATURESIZE -1
      OFFSET 0 0
      PARTIALS TRUE
    END
    POSITION LL
    STATUS OFF
  END
  QUERYMAP
    COLOR 255 255 0
    SIZE -1 -1
    STATUS OFF
    STYLE HILITE
  END
  SCALEBAR
    ALIGN CENTER
    COLOR 0 0 0
    IMAGECOLOR 255 255 255
    INTERVALS 4
    LABEL
      SIZE MEDIUM
      TYPE BITMAP
      BUFFER 0
      COLOR 0 0 0
      FORCE FALSE
      MINDISTANCE -1
      MINFEATURESIZE -1
      OFFSET 0 0
      PARTIALS TRUE
    END
    POSITION LL
    SIZE 200 3
    STATUS OFF
    STYLE 0
    UNITS MILES
  END
  WEB
    IMAGEPATH ""
    IMAGEURL ""
    QUERYFORMAT text/html
    LEGENDFORMAT text/html
    BROWSEFORMAT text/html
  END
  LAYER
    DATA "R:\Temp\Test\test_SWIR_tiled.tif"
    NAME "TEST_SWIR_TILED"
    STATUS DEFAULT
    TYPE RASTER
    UNITS DD
  END
END




Dan Walton
dgwalton at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091003/cd26341c/attachment.htm>


More information about the MapServer-users mailing list