Multiple parts of a polyline M

418
2
Jump to solution
06-23-2014 08:41 AM
ShaningYu
Frequent Contributor
In a SOE application, I have retrieve all of points broken from a polyline M if it is a single part segment.  If a segment contains multiple parts, how to retrieve the parts as well as the points using ArcObjects?  Thanks if you can share your experience.
0 Kudos
1 Solution

Accepted Solutions
RobertMaddox
New Contributor III
Well first off, it would help to show what you have so that people can understand more clearly what you need. But from how I read your question, it looks like you're wanting to get all the points from polylines that have multiple paths, is that correct? If so, then you need to understand that you'll have to cast the polyline into an IGeometryCollection first to get the separate paths.

Check out the Remarks here: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IPolyline_Interface/002m...
And the tutorial on creating such a polyline here: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_create_a_multipa...

View solution in original post

0 Kudos
2 Replies
RobertMaddox
New Contributor III
Well first off, it would help to show what you have so that people can understand more clearly what you need. But from how I read your question, it looks like you're wanting to get all the points from polylines that have multiple paths, is that correct? If so, then you need to understand that you'll have to cast the polyline into an IGeometryCollection first to get the separate paths.

Check out the Remarks here: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IPolyline_Interface/002m...
And the tutorial on creating such a polyline here: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_create_a_multipa...
0 Kudos
ShaningYu
Frequent Contributor
Robby:  Very Helpful!!! I will borrow the idea you provided.  Thanks a lot!!
0 Kudos