Hi I am looking to create a routine to remove part of a polyline, in particular 1m from each end of the polyline.
Is using IPolycurve.SplitAtDistance the best way to do this.
Take a look at ICurve.GetSubcurve. Extract the portion you want and post that geometry back to the feature.
Thanks for the reply. However in some cases, I will need to split the line feature a number of places where it intersects other line features as below. Any ideas?
For those cases you can find the intersect locations as points with ITopologicalOperator.Intersect.
Then use the points to either:
Find the distance along the line the intersection point occurs with ICurve.QueryPointAndDistance then use getsubcurve to extract it, or
use IFeatureEdit2.SplitWithUpdate to just split the line with the intersection point.
Retrieving data ...