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.
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.
Hi,
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?
Ravin,
Take a look at ICurve.GetSubcurve. Extract the portion you want and post that geometry back to the feature.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.