[mapserver-users] Simple Map File Question

Zhang, William wzhang at c-cor.net
Thu Aug 8 17:07:45 PDT 2002


Hi,

I succeeded in compiling and runing MapServer demo on Win2000 with IIS 5.0.
Now I am trying to study the tutorials and get problem. When I run the
tutorial Section 1 -- Example 1 with the map file 

NAME S1EX1
EXTENT -97.238976 41.619778 -82.122902 49.38562
SIZE 400 300
SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35"
LAYER # States
  NAME "states"
  DATA states_ugl
  STATUS DEFAULT
  TYPE POLYGON
  CLASSITEM "STATE"
  CLASS
    NAME "Michigan"
    COLOR 255 255 128
    OUTLINECOLOR 0 0 0
  END # end of class object
END # end of layer object
END # end of map file

It works fine. But when I changed the map file to 

NAME S1EX1
EXTENT -97.238976 41.619778 -82.122902 49.38562
SIZE 400 300
SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35"
LAYER # Roads
  NAME "roads"
  DATA roads_ugl
  STATUS ON
  TYPE LINE
  CLASSITEM "ROAD"
  CLASS
    NAME "MichiganROAD"
    COLOR 255 255 128    
  END # end of class object
END # end of layer object
END # end of map file

This does not work. It only shows a blank box. I downloaded roads_ugl.shp,
roads_ugl.shx and roads_ugl.dbf from 
http://terrasip.gis.umn.edu/projects/tutorial35/download.html 
and put them in the SHAPEPATH specified directory. I think it must be
something wrong in my map file. Could somebody kindly give me a hint?

Thanks,

William Zhang

C-Cor.net
E-Mail: wzhang at c-cor.net
Phone: (925) 251-3019
Fax:   (925) 467-0600
 





More information about the MapServer-users mailing list