Follow up on: [mapserver-users] Simple Map File Question

Zhang, William wzhang at c-cor.net
Fri Aug 9 18:28:20 PDT 2002


Please ignore my previous question. I found that with similar map file I was
able to show hydrol_ugl. I also succeeded in using MapServer to display some
line shape files converted from Tiger data. Although showing roads_ugl is
still a mystery to me, it is not important anymore.

Thanks again,

William Zhang

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

 
-----Original Message-----
From: Zhang, William [mailto:wzhang at c-cor.net]
Sent: Friday, August 09, 2002 2:30 PM
To: 'Steve Lime'; 'Tyler Mitchell'; 'Shaik Anwar Hussain';
mapserver-users at lists.gis.umn.edu
Subject: RE: [mapserver-users] Simple Map File Question



First I would like to thank all your answers. But somehow I still can't make
it work. I changed the status to DEFAULT and the extent to -99 40 -80 52
(states_ugl and roads_ugl covers the same area. So I think this extent
should be good enough.). Here is the new map file.

NAME s1new
EXTENT -99 40 -80 52
SIZE 400 300
SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35"
LAYER # Roads
  NAME "roads"
  DATA roads_ugl
  STATUS DEFAULT
  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

I tried following two strings to retrive map image
<img border="1"
src="/scripts/mapserv.exe?map=C:\Inetpub\wwwroot\itasca\test\s1new.map&mode=
map">
<img border="1"
src="/scripts/mapserv.exe?map=C:\Inetpub\wwwroot\itasca\test\s1new.map&mode=
map&layer=roads">

They all do not work. Is it possible that "mode=map" can't handle too many
lines?

Thanks,

William



-----Original Message-----
From: Steve Lime [mailto:steve.lime at dnr.state.mn.us]
Sent: Friday, August 09, 2002 7:31 AM
To: wzhang at c-cor.net; mapserver-users at lists.gis.umn.edu
Subject: Re: [mapserver-users] Simple Map File Question


The mapserver CGI version considers ALL non-default layers to be off.
First thing it does after processing the mapfile and the user input is
to turn all layers off. It then steps through the layer list provided by
the user and turns those on. Bottom line? STATUS ON/OFF makes no
difference to the CGI version. You must explicitly request that
non-default layers be on. Make sense?

Steve

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> "Zhang, William" <wzhang at c-cor.net> 08/08/02 07:07PM >>>

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