[mapserver-users] [Fwd: example1]

Steve Lime steve.lime at dnr.state.mn.us
Thu Jan 31 13:11:38 EST 2002


You're correct sir. Mapfiles *MUST* end in .map. I felt that it was
safer that way (i.e. people can't
request /etc/passwd), same goes for template files.

Steve

Stephen Lime
Data & Applications Manager

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

>>> "Tyler Mitchell" <TMitchell at lignum.com> 01/29/02 11:49AM >>>

Does the map file have to have a .map extension maybe?  I don't know
but
maybe .map2 is not legal.


                                                                       
                                                           
                    Jamie Smedsmo                                      
                                                           
                    <jsmedsmo at gis.umn.edu>              To:    
mapserver-users at lists.gis.umn.edu                                  
                    Sent by:                            cc:     orkun
<temiz at deprem.gov.tr>                                        
                    owner-mapserver-users at lists.g       Fax to:        
                                                           
                    is.umn.edu                          Subject:    
[mapserver-users] [Fwd: example1]                             
                                                                       
                                                           
                                                                       
                                                           
                    01/29/2002 08:10 AM                                
                                                           
                                                                       
                                                           
                                                                       
                                                           






-------- Original Message --------
                                 
 Subject: example1               
                                 
                                 
    Date: Tue, 29 Jan 2002       
          16:13:09 +0200         
                                 
    From: orkun                  
          <temiz at deprem.gov.tr>  
                                 
      To: projects at lists         
                                 



Hi

I am newly acquaint with mapserver.
So I am trying to learn the basic things.
The problem I have run into is:

firstly I prepared a html file to fire up as:

<html>
<head><title>Heyelan</title></head>
<body bgcolor="#FFFFFF">

<center><h2>heyelan</h2></center>
<p><hr><p>

<form method=GET action="/cgi-bin/mapserv">

<input type="hidden" name="map" value="/var/www/html/demo.map2">
<input type="hidden" name="layer" value="heyha6">
<input type="hidden" name="program" value="/cgi-bin/mapserv">

<center><input type="submit" value="Initialize"></center>


</form>

</body></html>

Then maplist (as demo.map2)

NAME map
EXTENT 4660000 4520000 480000 640000
SIZE 100 100
SHAPEPATH "/var/www/html"
LAYER
 NAME "hey_ha6"
 DATA hey_ha6
 STATUS DEFAULT
 TYPE POLYGON
 CLASS
   COLOR 250 175 25
 END # end of class object
END # end of layer object
END # end of map file


But every time I get this message : msLoadMap(): Unable to access
file.
Illegal mapfile name.

could you tell me what I didn't  fulfill ?
I look at the example1. if I am not wrong, that only contains two files
and
doesn't any template file.
I just want see a single map shape file.
How can I do that with a GRASS map?

Thanks in advance
Ahmet Temiz





______________________________________
Scanned and protected by Inflex
http://pldaniels.com/inflex 








More information about the mapserver-users mailing list