[ms4w-users] plz help..my raster cannot be displayed!

Jeff McKenna jmckenna at gatewaygeomatics.com
Thu Feb 19 22:09:41 EST 2009


MeLv1n wAuRaN wrote:
> hi all,
> 
> can anyone please help me? i cannot display my raster in my map. when i 
> run the
> "http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/skripsi/minut.map&mode=map"
> it gives me a white-blank page.
> 
> here's my map config:
> 
> MAP
> 
>   NAME "Minahasa Utara"
>   STATUS ON
>   EXTENT 0 1.26322 106.06944 138.88888
>   SIZE 478 625
>   SHAPEPATH "./minut"
>   SYMBOLSET "./minut/etc/symbols.sym"
> 
>   WEB
>     IMAGEPATH "/ms4w/tmp/ms_tmp/"
>     IMAGEURL "/ms_tmp/"
>   END
> 
>   LAYER
>     GROUP "Raster"
>     NAME "Background"
>     DATA "./minut/all_raster.tif"
>     STATUS ON
>     TYPE RASTER
> 
>   END # layer
> 
>   LAYER
>     NAME "ATM"
>     DATA "./minut/shape/atm.shp"
>     STATUS DEFAULT
>     TYPE POINT
> 
>     CLASS
>       NAME "ATM"
>       SYMBOL 3
>       SIZE 2
>       COLOR 255 0 0
>     END
> 
>   END # layer
> 
> END
> 
> 
> and here's the gdalinfo of the raster file:
> 
> 
> C:\ms4w\apps\skripsi\minut>gdalinfo all_raster.tif
> Driver: GTiff/GeoTIFF
> Files: all_raster.tif
> Size is 16800, 22000
> Coordinate System is:
> LOCAL_CS[" Geocoding information not available Projection Name = 
> Indonesian_1974
> _UTM_Zone_51N Units = meters GeoTIFF Units = meters",
>     UNIT["metre",1,
>         AUTHORITY["EPSG","9001"]]]
> Origin = (702000.000000000000000,195000.000000000000000)
> Pixel Size = (2.500000000000000,-2.500000000000000)
> Metadata:
>   AREA_OR_POINT=Area
>   TIFFTAG_SOFTWARE=IMAGINE TIFF Support
> Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved
> @(#)$RCSfile: etif.c $ $Revision: 1.11.2.2 $ $Date: 2004/12/07 10:30:45EST $
>   TIFFTAG_XRESOLUTION=1
>   TIFFTAG_YRESOLUTION=1
>   TIFFTAG_RESOLUTIONUNIT=1 (unitless)
> Image Structure Metadata:
>   INTERLEAVE=PIXEL
> Corner Coordinates:
> Upper Left  (  702000.000,  195000.000)
> Lower Left  (  702000.000,  140000.000)
> Upper Right (  744000.000,  195000.000)
> Lower Right (  744000.000,  140000.000)
> Center      (  723000.000,  167500.000)
> Band 1 Block=16800x1 Type=Byte, ColorInterp=Red
> Band 2 Block=16800x1 Type=Byte, ColorInterp=Green
> Band 3 Block=16800x1 Type=Byte, ColorInterp=Blue
> 
> 
> 
> any help will be much appreciated..thanks
> 
> Cheers,
> Melvin
> 

Here are my thoughts:

- set the EXTENT parameter to the bounds of your raster (the values are 
in the gdalinfo response)
- set "UNITS meters" after the extent parameter
- use the shp2img utility to debug

--jeff



-- 
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/




More information about the ms4w-users mailing list