Multipart InsertMAtDistance( Multipart multipart, double mValue, double distance, AsRatioOrLength asRatioOrLength, bool createNewPart, out bool splitHappened, out int partIndex, out int segmentIndex )
Function InsertMAtDistance( _ ByVal multipart As Multipart, _ ByVal mValue As Double, _ ByVal distance As Double, _ ByVal asRatioOrLength As AsRatioOrLength, _ ByVal createNewPart As Boolean, _ ByRef splitHappened As Boolean, _ ByRef partIndex As Integer, _ ByRef segmentIndex As Integer _ ) As Multipart
Parameters
- multipart
- The multipart in which to set the M value.
- mValue
- The M value to set.
- distance
- The distance along the multipart at which to set the M value. If no point exists at the given distance, a new point is created with interpolated X and Y values.
- asRatioOrLength
- Indicates whether the distance is interpreted as length or as a ratio along the multipart.
- createNewPart
- Indicates whether to create a new part at the split point (the point whose M value is set) or not. MUST be false for polygons. For polylines, if true, the part on which the new split point falls is split into two parts with the newly added vertex serving as the end of the first part and the beginning of the second.
- splitHappened
- Indicates if a split happened at the split point. No split happens if createNewPart is false and the split point is at an existing vertex, or if createNewPart is true and a split part would be empty.
- partIndex
- The index of the part that was modified. If createNewPart is true, partIndex refers to the added part and segmentIndex will be 0.
- segmentIndex
- The index of the segment that was modified. The segment index is relative to the modified part.
Return Value
A multipart with the M value set.