[MS4W-Users] Mapserver Hello World

Pano Voudouris pvoudouris at gaiocorp.com
Thu Mar 11 03:26:35 EST 2010


Marcelo - not sure if TEMPLATE can be set as a URL. I usually set the
template to the absolute folder path e.g. c:\...\hello.html. Check if this
works.
Pano

	_____________________________________________
	From: ms4w-users-bounces at lists.maptools.org
[mailto:ms4w-users-bounces at lists.maptools.org] On Behalf Of Marcelo Miranda
	Sent: 05 March 2010 20:00
	To: ms4w-users at lists.maptools.org
	Subject: [MS4W-Users] Mapserver Hello World
	

	I have an error below, someone can help me?

	ERROR
	loadWeb(): Unknown identifier. Parsing error near (c):(line 1)

	MAP
	# This is our "Hello World" mapfile
	NAME "Hello World"
	SIZE 400 300
	IMAGECOLOR 249 245 186
	IMAGETYPE png
	EXTENT -1.0 -1.0 1.0 1.0
	WEB
	     TEMPLATE "http://localhost/hello.html"
	     IMAGEPATH "c:/ms4w/tmp/ms_tmp/"
	     IMAGEURL "/tmp/"
	END
	LAYER					 
	     STATUS default
	     TYPE point
	     FEATURE
	          POINTS  0.00 0.00 END
	          TEXT "Hello World"
	     END # end feature
	     CLASS
	          STYLE
	               COLOR 255 0 0
	          END
	          LABEL
	               TYPE bitmap
	          END
	     END
	END
	END

	TEMPLATE
	<html>
	<head> <title>MapServer Hello World</title></head>
	<body>
	    <form method=POST action="/cgi-bin/mapserv.exe ">
	        <input type="submit" value="Click Me">
	        <input type="hidden" name="map"
value="c:/ms4w/apps/mapfiles/hello.map">
	        <input type="hidden" name="map_web_imagepath" 
		        value="c:/ms4w/tmp/ms_tmp/">
	    </form>
	    <IMG SRC="[img]" width=400 height=300 border=0>
	</body>
	</html>

	Atenciosamente,
	 
	Marcelo Miranda
	Diretor
	Flora Nativa
	http://www.sisflora.com.br
	 << File: ATT00313.txt >> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 9774 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/ms4w-users/attachments/20100311/6ebdf414/attachment.bin 


More information about the MS4W-Users mailing list