how to show hdf in mapserver

wlx wlx at MYGIS.ORG
Thu Dec 2 05:00:46 PST 2004


Hi all,
    I has compiled gdal with hdf4 support in my debian linux system,and
compiled mapserver with gdal's support,and I know how to write the hdf's
subdataset data line,but result is a blank image.
    My hdf is ASTER Level 1B data,and I can use gdal_translate utility to
convert its subdataset as a image.

   Are there something wrong?

   Best regards,

LiangXu Wang


    My map file:
----------------------
  MAP
  NAME "hdf"
  STATUS ON
  EXTENT 97 37 102 42
  SIZE 400 400
  IMAGETYPE PNG
  UNITS DD
  WEB
    IMAGEPATH "/tmp/"
    IMAGEURL "/tmp/"
  END
  LAYER
    NAME "hdf"
    STATUS ON
    DATA
"HDF4_EOS:EOS_SWATH:AST_L1B_003_02182001042410_12162003180257.hdf:VNIR_Swath
:ImageData1"
    TYPE RASTER
    UNITS DD
    SIZEUNITS PIXELS
    projection
        "proj=latlong"
    end
  END
END



More information about the MapServer-users mailing list