MapWinGeoProc:SpatialOperations ClipPolygonWithLine4

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

ClipPolygonWithLine

Syntax

 bool ClipPolygonWithLine(ref MapWinGIS.Shape polygon, ref MapWinGIS.Shape line, ref MapWinGIS.Shapefile resultSF, System.Boolean speedOptimized)

Summary

Divides a polygon into multiple sections depending on where a line crosses it. Saves the resulting
polygon sections to a new polygon shapefile.

Parameters

polygon The polygon to be divided.
line The line that will be used to divide the polgyon.
resultSF The in-memory shapefile where resulting polygons should be saved.
speedOptimized True if a line follows the assumption that only one intersection
occurs for any 2pt segment. And only 2pt segments that have a point inside->outside or outside->inside
will be tested for interesection.

Returns

False if an error was encountered, true otherwise.

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

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

This page has been accessed 512 times. This page was last modified on 26 June 2006, at 18:59.