MapWinGeoProc:Utils PartIsSelfIntersecting
From MapWindow GIS
PartIsSelfIntersecting
Syntax
bool PartIsSelfIntersecting(MapWinGIS.Shape shape, int PartIndex)
Summary
Tests a specific part to ascertain if any two segements in the part intersect each other.
Parameters
| shape | A MapWinGIS Shapefile object. |
| PartIndex | An integer from 0 to Shape.numParts - 1 specifying the part to test. |
Returns
A True if lines intersect, false if not.
Remarks
Author: Ted Dunsford 6/21/2006
Algorithm derived from: http://astronomy.swin.edu.au/~pbourke/geometry/lineline2d/
Cached in MapWinGeoProc\Documentation\IntersectionPointOfTwoLines.htm
Visual Basic Net 2005 Example Implementation Code
Visual C# 2005 Example Implementation Code
Back to Utils
















