Get the coordinates of the points on the line segment

classic Classic list List threaded Threaded
2 messages Options
KaiTang KaiTang
Reply | Threaded
Open this post in threaded view
|

Get the coordinates of the points on the line segment

Hellow everyone,
  I create a line by FeatureNode.Now,I want to divide this line into several equal intervals,how to get the coordinates of both ends of each line segment。



gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Get the coordinates of the points on the line segment

KaiTang,

You can access the Feature(s) by calling FeatureNode::getFeature() or getFeatureList(). Each Feature's geometry is under feature->getGeometry(). You can get the individual points from there.

Hope this helps.
Glenn Waldron / Pelican Mapping