FW: [UMN_MAPSERVER-USERS] msLoadMap(): Unknown identifier. Parsing error near (255):(line 4)

Fawcett, David David.Fawcett at STATE.MN.US
Thu Jun 29 07:57:31 PDT 2006


Albert, 
 
On line 4, you have 'IMAGETYPE 255 255 255'
 
This is causing the error.  You should either comment this line out, or change it to 'IMAGECOLOR 255 255 255'
 
David.
 

	-----Original Message-----
	From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson
	Sent: Thursday, June 29, 2006 9:47 AM
	To: MAPSERVER-USERS at LISTS.UMN.EDU
	Subject: Re: [UMN_MAPSERVER-USERS] FW: [UMN_MAPSERVER-USERS] msLoadMap(): Unknown identifier. Parsing error near (255):(line 4)
	
	
	There is the my map file
	#This is our first mapfile
	NAME "First"
	SIZE 400 300
	IMAGETYPE 255 255 255
	IMAGETYPE JPEG
	SHAPEPATH "/home/mapdata/"
	EXTENT -125.00 20.00 -65.00 50.00
	WEB
	  TEMPLATE '/var/www/htdocs/first.html'
	  IMAGEPATH '/var/www/htdocs/tmp'
	  IMAGEURL '/tmp/'
	END
	LAYER
	    NAME "US States"
	    STATUS default
	    TYPE line
	    DATA "statesp020"
	    LABELITEM "STATE"
	    CLASS
	       STYLE
	               COLOR 0 0 0
	       END
	               COLOR 0 0 0 
	               SIZE SMALL
	       END
	    END
	END
	END
	
	and there is my html
	
	<html>
	<head><title>MapServer First Map</title></head>
	<body>
	  <form method=POST action="/cgi-bin/mapserv">
	    <input type="submit" value="Click Me"
	    <input type="hidden" name="map"
	              value="/home/mapdata/first.map">
	    <input type="hidden" name="map_web_imagepath"
	              value="/var/www/htdocs/tmp/">
	
	  </form>
	  <IMG SRC="[img]" width=400 height=300 border=0>
	</body>
	</html>
	
	Thanks,
	Albert
	
	
	
	
	"Fawcett, David" <David.Fawcett at STATE.MN.US> wrote: 

		Albert, 
		 
		Please CC' the entire list on your responses.  
		 
		From your description, you have an error in your mapfile.  I would suggest including the text of your mapfile in your response to the list.  
		 
		David.
		 
		-----Original Message-----
		From: Albert Anderson [mailto:bart_doggers at yahoo.com] 
		Sent: Thursday, June 29, 2006 9:13 AM
		To: Fawcett, David
		Subject: RE: [UMN_MAPSERVER-USERS] msLoadMap(): Unknown identifier. Parsing error near (255):(line 4) 
		
		
		Hi,
		
		 I did a wapperscript and put name="map" in the html where the input is.  Now I am getting this error msLoadMap(): Unknown identifier. Parsing error near (255):(line 4) .  Could you please help me.
		
		Thanks,
		Albert
		
		"Fawcett, David" <David.Fawcett at state.mn.us> wrote: 

			Albert, 
			 
			You are calling the MapServer cgi program, but you are not telling it which map file to use for configuration.  If you are calling the program with a get request (in a URL), it should look something like:
			 
			http://my.site/cgi-bin/mapserv?map=/home/mydirectory/mymapfile.map
			 
			You will likely set other variables in the URL also, like mode, layers, etc.  
			 
			If you are calling the MapServer cgi from a html form, you are missing a hidden html variable named map that, like the url variable above, would contain the path to your map file.  
			 
			David.

				-----Original Message-----
				From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson
				Sent: Thursday, June 29, 2006 8:18 AM
				To: MAPSERVER-USERS at LISTS.UMN.EDU
				Subject: [UMN_MAPSERVER-USERS] load Map error
				
				
				Hi,
				
				 I am getting this error loadMap(): Web application error. CGI variable "map" is not set.  That is when I am clicking the submit button and it doesnt load up the map. Can anyone help me?
				
				
				
				Thanks,
				Albert
				
________________________________

				Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1�/min. <http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com> 


________________________________

		Yahoo! Music Unlimited - Access over 1 million songs. Try it free. <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/%20>  


	__________________________________________________
	Do You Yahoo!?
	Tired of spam? Yahoo! Mail has the best spam protection around 
	http://mail.yahoo.com 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060629/1347320e/attachment.htm>


More information about the MapServer-users mailing list