Raster not displaying correctly

Ed McNierney ed at TOPOZONE.COM
Fri Jan 19 18:48:53 PST 2007


Ian -
 
Can you post the entire MAP file, not just that layer, and the URL you
use to generate the map?  The extent of the requested map, specified by
either the EXTENT in the MAP file or on the URL, needs to overlap the
extent of your layer.  We can see what the extents of the layer are, but
you haven't told us the extents of the requested map.
 
     - Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
Phone: +1 (978) 251-4242
Fax: +1 (978) 251-1396
ed at topozone.com 


________________________________

From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Ian
Sent: Friday, January 19, 2007 7:01 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Raster not displaying correctly


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/f0d3902d/attachment.htm>


More information about the MapServer-users mailing list