<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,</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Comic Sans MS" size="3">If you don't care about the actual coordinates of the points along the line (just trying to display things) 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>
>>> Andy Colson <andy@squeakycode.net> 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, Mark Brooks wrote:<br>> I'm using PHP Mapscript. I need a point every X meters along the line.<br>><br>> Mark<br>><br>><br>> Andy Colson wrote:<br>>> On 4/15/2010 10:24 AM, Mark Brooks wrote:<br>>>> I have a line object that I need to to turn into points. How can I<br>>>> create a series of points from the line object?<br>>>><br>>>> Mark<br>>>> NC State University<br>>><br>>> A line has many many points. Which are you interested in? Just the<br>>> first and last? Any one point on the line? The mid-point? A point<br>>> every meter along the line? The closes point on the line to some other<br>>> object?<br>>><br>>> I know of two options:<br>>> 1) use PostGIS:<br>>> select st_centroid(the_geom) from layer<br>>><br>>> 2) use mapscript<br>>><br>>><br>>> -Andy<br>><br><br>Does the line have a single start and end point? (a MULTILINE record<br>can have multiple lines (so multiple start and end points, all stuck<br>togethor).<br><br>In general, find the start and end points, use them to find the equation<br>of the line (y=mx+b if I recall correctly), then use that equation to<br>find one corrd based on another. (so, plug in a buch of x's to find<br>their y's).<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>