[Mapserver-users] Display ADF grid format through MapServer

Marcin Zajączkowski mszpak at wp.pl
Wed May 5 11:34:34 EDT 2004


Dnia 2004-04-26 22:34, U¿ytkownik Marcin Zaj±czkowski napisa³:
> I try to display raster map stored in ArcView grid format (ADF). I 
(...)
> Maybe somebody could point me place with some sample map file (to work 
> with grid) or send me one?

After many tests I did it. Below info for people with similar problem.

In my case the problem was with SHAPEPATH in map file. Assigned value 
'coused that mapserver looked for raster files in directory for shape 
files...

Below some minimal file which works for me.

<grid.map>
MAP
IMAGETYPE	PNG24
#some Your extent
EXTENT	3745019.024215 5475485.177366 3753882.753967 5495002.010907
 

UNITS	METERS
SIZE	400 300
IMAGECOLOR	255 255 255

LAYER # raster layer
     NAME dem
     DATA "dem"	#directory with grid
     STATUS DEFAULT
     TYPE RASTER
END
 

END
</grid.map>

My files structure:
[szpak at szpak my2]$ ls
dem
info
grid.map
[szpak at szpak my2]$ ls dem
dblbnd.adf  hdr.adf  log  prj.adf  sta.adf  vat.adf  w001001.adf 
w001001x.adf
[szpak at szpak my2]$ ls info
arc0003.dat  arc0004.dat  arc0005.dat  arc0005r.001
arc0003.nit  arc0004.nit  arc0005.nit  arc.dir

I the problem still exists, this (probably) means that it isn't problem 
with map file. I suggest to read Raster Tutorial (which describe how to 
check what format does MapServer actually support).
http://mapserver.gis.umn.edu/doc40/raster-howto.html

Hope that it helps someone
Marcin



More information about the mapserver-users mailing list