[mapserver-users] Drawing a line

Fawcett, David David.Fawcett at state.mn.us
Thu Oct 16 09:22:12 PDT 2008


If you just want to pass the feature in using a URL configuration, you wouldn't need to use mapscript.  Just have the empty layer in your map file and then pass the feature definition in like:
 
 
&map_layer[3]=FEATURE+POINTS+-67.0000012+-16.9999952+-67.0000012+-17.4999950+END+TEXT+'A+test+line'+END&...
 
David. 
 

	-----Original Message-----
	From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Roger André
	Sent: Thursday, October 16, 2008 11:11 AM
	To: ramya srinivasan
	Cc: mapserver-users at lists.osgeo.org
	Subject: Re: [mapserver-users] Drawing a line
	
	
	Do you mean "given" as in "submitted via a web page"?  In that case I think I would use Python mapscript to add a LAYER similar to the one I sent below, but using the form variables submitted from the web page as the POINTS values.  Take a look at the chapter on Python Mapscript in the O'Reilley Web Mapping Illustrated book.  It explains it more clearly than I'm probably able to.
	
	Perhaps someone else on the list has another idea.
	--
	
	
	
	On Wed, Oct 15, 2008 at 9:40 PM, ramya srinivasan <hellomps at gmail.com> wrote:
	

		Hi,
		 Thanks for yor reply.Can u please tell me how to draw a line between two points given by the user?
		
		
		On Wed, Oct 15, 2008 at 10:23 PM, Roger André <randre at gmail.com> wrote:
		

			You can add a new LAYER with a FEATURE that has the 2 points specified in it, like this:
			
			  LAYER
			    NAME 'line'
			    STATUS DEFAULT
			    TYPE LINE
			    FEATURE
			      POINTS  -67.0000012 -16.9999952
			                    -67.0000012 -17.4999950
			
			      END
			    END
			    CLASS
			      STYLE
			        COLOR 255 0 0
			        WIDTH 2
			      END
			    END # class
			  END # layer
			
			##############
			
			
			
			On Wed, Oct 15, 2008 at 3:42 AM, ramya srinivasan <hellomps at gmail.com> wrote:
			

				Hi, 
				 How to draw a line on the map between two points given by the user? What all should be included in the mapfile for this line layer.

				_______________________________________________
				mapserver-users mailing list
				mapserver-users at lists.osgeo.org
				http://lists.osgeo.org/mailman/listinfo/mapserver-users
				
				




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


More information about the MapServer-users mailing list