Raster not displaying correctly

Ian iansgis at GMAIL.COM
Fri Jan 19 19:00:44 EST 2007


Hello all,

I'm having trouble getting a raster to draw correctly. I've worked with
elevation rasters in MapServer before, and can't for the life of me figure
out what's going on (which means it's likely something minor or obvious that
I'm missing). Gdalinfo for the raster is as follows:

Driver: HFA/Erdas Imagine Images (.img)
Size is 80, 69
Coordinate System is:
GEOGCS["WGS_1984",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.2572235629972],
        TOWGS84[0,0,0,0,0,0,0]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433]]
Origin = (-120.025000,35.975000)
Pixel Size = (0.05000000,-0.05000000)
Corner Coordinates:
Upper Left  (-120.0250000,  35.9750000) (120d 1'30.00"W, 35d58'30.00"N)
Lower Left  (-120.0250000,  32.5250000) (120d 1'30.00"W, 32d31'30.00"N)
Upper Right (-116.0250000,  35.9750000) (116d 1'30.00"W, 35d58'30.00"N)
Lower Right (-116.0250000,  32.5250000) (116d 1'30.00"W, 32d31'30.00"N)
Center      (-118.0250000,  34.2500000) (118d 1'30.00"W, 34d15'0.00"N)
Band 1 Block=64x64 Type=Float32, ColorInterp=Undefined
  Description = Band_1
  Min=0.001 Max=5.075
  Minimum=0.001, Maximum=5.075, Mean=0.090, StdDev=0.263
Metadata:
  STATISTICS_MINIMUM=0.0011299999896437
  STATISTICS_MAXIMUM=5.0749998092651
  STATISTICS_MEAN=0.090484300081334
  STATISTICS_MEDIAN=0.060400001704693
  STATISTICS_MODE=0.016850000247359
  STATISTICS_STDDEV=0.263437971404
  LAYER_TYPE=athematic

The following simple layer draws a black box (which I've read may be a data
source/extent issue):

LAYER
  NAME shear
  TYPE RASTER
  DATA /strainMap/shear/shear2.img
  STATUS DEFAULT
  PROJECTION
    "proj=latlong"
    "ellps=WGS84"
    "datum=WGS84"
  END
END ## Layer

What am I missing?
Thank you!

Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070119/9d938859/attachment.html


More information about the mapserver-users mailing list