MapWinGeoProc:ClipPolyWithLine Fast ProcessPartInAndOut

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

Fast_ProcessPartInAndOut

Syntax

 bool Fast_ProcessPartInAndOut(ref System.Boolean[] insidePts, ref MapWinGIS.Shape line, ref MapWinGIS.Shape polygon, ref MapWinGIS.Shapefile resultSF)

Summary

Given a line that contains portion both inside and outside of the polygon, this
function will split the polygon based only on the segments that completely bisect
the polygon. It assumes: out->out, and in->in 2pt segments do not intersect the
polygon, and out->in, in->out 2pt segments have only one point of intersection.

Parameters

insidePts A boolean array indicating if a point is inside the polygon or not.
line The line that intersects the polygon.
polygon The polygon that will be split by the intersecting line.
resultSF The shapefile that the polygon sections will be saved to.

Returns

False if errors were encountered or an assumption violated, true otherwise.

Visual Basic Net 2005 Example Implementation Code
Visual C# 2005 Example Implementation Code
Back to ClipPolyWithLine

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGeoProc:ClipPolyWithLine_Fast_ProcessPartInAndOut"

This page has been accessed 893 times. This page was last modified on 26 June 2006, at 15:11.