SIMPLE (I HOPE) Problems with Tiff images

Ben bmad0463 at MAIL.USYD.EDU.AU
Wed Mar 2 18:36:26 PST 2005


I am having a more simple problem with Rasters, I was wondering if you could help.

I am using MServ 4.4.1 on OS X, and working through the tutorial, (all going well) but
when I get to 1.5, where a raster background map is introduced, I stopped getting
images.

If I comment out the RASTER details, I get the rest of the map, so I suspect my links
are otherwise OK.

the mapfile as far as the offending section is :

MAP
IMAGETYPE      PNG24
EXTENT        201621.496941 -294488.285333 1425518.020722 498254.511514
SIZE           400 300
SHAPEPATH      "data"
FONTSET        "fonts/fonts.list"
SYMBOLSET      "symbols/symbols35.sym"

PROJECTION
#  "proj=laea"
#  "ellps=clrk66"
#  "lat_0=45"
#  "lon_0=-100"
#
# Alternatively, you can specify an EPSG code.
 "init=epsg:2163"
#
END

# Start of LAYER DEFINITIONS ---------------------------------------------
LAYER # States polygon layer begins here
  NAME         states
  DATA         states_ugl
  STATUS       OFF
  TYPE         POLYGON

  PROJECTION
    "init=epsg:4326"
  END

  CLASSITEM    "CLASS"
  CLASS
    EXPRESSION 'land'
    COLOR      232 232 232
  END
END # States polygon layer ends here

#LAYER # MODIS raster layer begins here
#  NAME         modis
#  DATA         "raster/mod09a12003161_ugl_ll_8bit.tif"
#  STATUS       DEFAULT
#  TYPE         RASTER
#  PROCESSING   "BANDS=1,2,3"
#  OFFSITE      71 74 65
#
#  PROJECTION
#    "init=epsg:4326"
#  END
#END # MODIS raster layer ends here

I commented it out to check it works without the raster layer which it does. I am
assuming that the second data reference is relation to the original data directory.

It calls for a tiff image, which according to phpinfo() should be available (I am using
the CGI version, but both compiled at the same time.)

MapServer Version
 MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=
WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=
WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS
INPUT=SHAPEFILE


GDAL doesn't seem to have compiled, but I gather it should still work OK, have I
missed something?

cheers

Ben



More information about the MapServer-users mailing list