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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roger
André
Sent: Thursday, October 16, 2008 11:11 AM
To: ramya srinivasan
Cc: [email protected]
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 <[EMAIL PROTECTED]>
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é <[EMAIL
PROTECTED]> 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
<[EMAIL PROTECTED]> 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
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users