## SortIntersectAndLocationArrays

**Syntax**

SortIntersectAndLocationArrays(ref MapWinGIS.Point startPt, ref MapWinGIS.Point[] intersectPts, ref int[] polyLoc)

**Summary**

Given a reference point to the line, and an array of points
that

lie along the line, this method sorts the array of points from the
point

closest to the reference pt to the pt farthest away. It also sorts
the corresponding

polygon location array so that the indicies refer to the correct
intersection point.

**Parameters**

startPt |
Point in line segment used as reference. |

intersectPts |
Array of points that lie on the same line as startPt. |

polyLoc |
Array indexing where in polygon an intersect occurs. |

Visual Basic Net 2005 Example
Implementation Code

Visual C# 2005 Example Implementation
Code

Back to
Globals