## SectionPolygonWithLine

**Syntax**

bool SectionPolygonWithLine(ref MapWinGIS.Shape line, ref MapWinGIS.Shape polygon, int polyStart, int polyEnd, ref MapWinGIS.Shapefile resultSF)

**Summary**

Sections a polygon into multiple parts depending on where line
crosses it and if previous sectioning has occured.

**Parameters**

line |
The line that splits the polygon. First and last points are intersect points. |

polygon |
The polygon that is to be split by the line. |

polyStart |
Index to polygon segment where the first intersect point is found. |

polyEnd |
Index to polygon segment where last intersect point is found. |

resultSF |
Reference to result shapefile where new polygon sections will be saved. |

**Returns**

False if an error occurs, true otherwise.

Visual Basic Net 2005 Example
Implementation Code

Visual C# 2005 Example Implementation
Code

Back to
ClipPolyWithLine