[mapserver-users] converting line object to series of points

Mark Brooks mark_brooks at ncsu.edu
Thu Apr 15 11:51:11 EDT 2010


I'm using PHP Mapscript.  I need a point every X meters along the line.

Mark


Andy Colson wrote:
> On 4/15/2010 10:24 AM, Mark Brooks wrote:
>> I have a line object that I need to to turn into points.  How can I
>> create a series of points from the line object?
>>
>> Mark
>> NC State University
> 
> A line has many many points.  Which are you interested in?  Just the 
> first and last?  Any one point on the line?  The mid-point?  A point 
> every meter along the line?  The closes point on the line to some other 
> object?
> 
> I know of two options:
> 1) use PostGIS:
> select st_centroid(the_geom) from layer
> 
> 2) use mapscript
> 
> 
> -Andy



More information about the mapserver-users mailing list