<html>
  <head>
    <style type="text/css">
      <!--
        body { margin-right: 4px; margin-left: 4px; font-variant: normal; margin-top: 4px; margin-bottom: 1px; line-height: normal }
        p { margin-top: 0; margin-bottom: 0 }
      -->
    </style>
    
  </head>
  <body style="margin-right: 4px; margin-left: 4px; margin-top: 4px; margin-bottom: 1px">
    <p style="margin-bottom: 0; margin-top: 0">
      <font face="Comic Sans MS" size="3">All&#44;</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font face="Comic Sans MS" size="3">If you don&#39;t care about the actual coordinates of the points along the line &#40;just trying to display things&#41; I wonder if a linetype/combined with a scaling option would get you what you are looking for.</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font face="Comic Sans MS" size="3">bobb</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <br>
      <br>
      &gt;&gt;&gt; Andy Colson &lt;andy@squeakycode.net&gt; wrote:<br>    </p>
    <div style="margin-right: 0; margin-left: 15px; padding-left: 7px; margin-top: 0; background-color: #f3f3f3; border-left: solid 1px #050505; margin-bottom: 0">
      <p style="margin-bottom: 0; margin-top: 0">
        On 4/15/2010 10:51 AM&#44; Mark Brooks wrote:<br>&gt; I&#39;m using PHP Mapscript.&#160;&nbsp;I need a point every X meters along the line.<br>&gt;<br>&gt; Mark<br>&gt;<br>&gt;<br>&gt; Andy Colson wrote:<br>&gt;&gt; On 4/15/2010 10:24 AM&#44; Mark Brooks wrote:<br>&gt;&gt;&gt; I have a line object that I need to to turn into points. How can I<br>&gt;&gt;&gt; create a series of points from the line object&#63;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Mark<br>&gt;&gt;&gt; NC State University<br>&gt;&gt;<br>&gt;&gt; A line has many many points. Which are you interested in&#63; Just the<br>&gt;&gt; first and last&#63; Any one point on the line&#63; The mid-point&#63; A point<br>&gt;&gt; every meter along the line&#63; The closes point on the line to some other<br>&gt;&gt; object&#63;<br>&gt;&gt;<br>&gt;&gt; I know of two options:<br>&gt;&gt; 1&#41; use PostGIS:<br>&gt;&gt; select st_centroid&#40;the_geom&#41; from layer<br>&gt;&gt;<br>&gt;&gt; 2&#41; use mapscript<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; -Andy<br>&gt;<br><br>Does the line have a single start and end point&#63;&#160;&nbsp;&#40;a MULTILINE record<br>can have multiple lines &#40;so multiple start and end points&#44; all stuck<br>togethor&#41;.<br><br>In general&#44; find the start and end points&#44; use them to find the equation<br>of the line &#40;y&#61;mx&#43;b if I recall correctly&#41;&#44; then use that equation to<br>find one corrd based on another.&#160;&nbsp;&#40;so&#44; plug in a buch of x&#39;s to find<br>their y&#39;s&#41;.<br><br>-Andy<br>_______________________________________________<br>mapserver-users mailing list<br>mapserver-users@lists.osgeo.org<br><a href="http://lists.osgeo.org/mailman/listinfo/mapserver">http://lists.osgeo.org/mailman/listinfo/mapserver</a>-users<br>
      </p>
    </div>
  </body>
</html>