<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=815401516-16102008><FONT face=Arial color=#0000ff size=2>If you 
just want to pass the feature in using a URL configuration, you wouldn't need to 
use mapscript.&nbsp; Just have the empty layer in your map file and then pass 
the feature definition in like:</FONT></SPAN></DIV>
<DIV><SPAN class=815401516-16102008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=815401516-16102008><FONT face=Arial color=#0000ff 
size=2></FONT>&nbsp;</DIV>
<DIV class=literal-block><FONT face=Arial color=#0000ff 
size=2>&amp;map_layer[3]=FEATURE+POINTS+-67.0000012<SPAN 
class=815401516-16102008>+</SPAN>-16.9999952+-67.0000012<SPAN 
class=815401516-16102008>+</SPAN>-17.4999950<SPAN 
class=815401516-16102008>+</SPAN>END+TEXT+'A+test+<SPAN 
class=815401516-16102008>line</SPAN>'+END&amp;...</FONT></DIV>
<DIV class=literal-block><FONT face=Arial color=#0000ff 
size=2></FONT>&nbsp;</DIV>
<DIV class=literal-block><FONT><SPAN class=815401516-16102008></SPAN><FONT 
face=Arial color=#0000ff size=2>D<SPAN class=815401516-16102008>avid.</SPAN>
</FONT></FONT></DIV>
<DIV></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  mapserver-users-bounces@lists.osgeo.org 
  [mailto:mapserver-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Roger 
  André<BR><B>Sent:</B> Thursday, October 16, 2008 11:11 AM<BR><B>To:</B> ramya 
  srinivasan<BR><B>Cc:</B> mapserver-users@lists.osgeo.org<BR><B>Subject:</B> 
  Re: [mapserver-users] Drawing a line<BR><BR></FONT></DIV>
  <DIV dir=ltr>Do you mean "given" as in "submitted via a web page"?&nbsp; 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.&nbsp; Take a look at the chapter on Python Mapscript in the 
  O'Reilley Web Mapping Illustrated book.&nbsp; It explains it more clearly than 
  I'm probably able to.<BR><BR>Perhaps someone else on the list has another 
  idea.<BR>--<BR><BR><BR>
  <DIV class=gmail_quote>On Wed, Oct 15, 2008 at 9:40 PM, ramya srinivasan <SPAN 
  dir=ltr>&lt;<A 
  href="mailto:hellomps@gmail.com">hellomps@gmail.com</A>&gt;</SPAN> wrote:<BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
    <DIV dir=ltr>
    <DIV>Hi,</DIV>
    <DIV>&nbsp;Thanks for yor reply.Can u please tell me how to draw a line 
    between two points given by the user?<BR><BR></DIV>
    <DIV>
    <DIV></DIV>
    <DIV class=Wj3C7c>
    <DIV class=gmail_quote>On Wed, Oct 15, 2008 at 10:23 PM, Roger André <SPAN 
    dir=ltr>&lt;<A href="mailto:randre@gmail.com" 
    target=_blank>randre@gmail.com</A>&gt;</SPAN> wrote:<BR>
    <BLOCKQUOTE class=gmail_quote 
    style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
      <DIV dir=ltr>You can add a new LAYER with a FEATURE that has the 2 points 
      specified in it, like this:<BR><BR>&nbsp; LAYER<BR>&nbsp;&nbsp;&nbsp; NAME 
      'line'<BR>&nbsp;&nbsp;&nbsp; STATUS DEFAULT<BR>&nbsp;&nbsp;&nbsp; TYPE 
      LINE<BR>&nbsp;&nbsp;&nbsp; FEATURE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      POINTS&nbsp; -67.0000012 
      -16.9999952<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      &nbsp; &nbsp; &nbsp;&nbsp; -67.0000012 
      -17.4999950<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      END<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; 
      CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 0 
      0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WIDTH 
      2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; END # 
      class<BR>&nbsp; END # layer<BR><BR>##############<BR><BR><BR>
      <DIV class=gmail_quote>
      <DIV>On Wed, Oct 15, 2008 at 3:42 AM, ramya srinivasan <SPAN 
      dir=ltr>&lt;<A href="mailto:hellomps@gmail.com" 
      target=_blank>hellomps@gmail.com</A>&gt;</SPAN> wrote:<BR></DIV>
      <BLOCKQUOTE class=gmail_quote 
      style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
        <DIV>
        <DIV dir=ltr>Hi, 
        <DIV>&nbsp;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.</DIV></DIV><BR></DIV>_______________________________________________<BR>mapserver-users 
        mailing list<BR><A href="mailto:mapserver-users@lists.osgeo.org" 
        target=_blank>mapserver-users@lists.osgeo.org</A><BR><A 
        href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" 
        target=_blank>http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>