Select a Part of the Line Segment

345
1
01-25-2013 07:31 PM
shreyesshiv
New Contributor III
I have a line feature, i have to select a part of the line feature.

For example there is a line feature of 100meters. I want to select only 50meters of that line or any length less than 100meters.

I tried the following methods,
I created geometry of the feature, cut the line to the required length and depicted it as a ielement on the map.
This gives unusual results like sometimes the line appears perfectly and sometimes the line is drawn randomly. Hence i want to know whether there is any way to select a part of the line segment only using ifeatureselection or alternative methods.

I am developing in C#.net

thank you
0 Kudos
1 Reply
WeifengHe
Esri Contributor
Not clear of "sometimes the line is drawn randomly".  There are a couple of methods from IPolycurve might be useful for your application: SplitAtDistance and SplitAtPoint.  You specify the input parameters as your requirement, and you get the part of the polyline you want.
0 Kudos