Split with Line

General API samples


click two poins to draw a line:

Shapes after split: ...

This sample demonstrates the use of topology functionality (CreateShape, TGIS_Topology.Create and TGIS_Topology.SplitByArc functions) in the TatukGIS Developer Kernel for ASP.NET to split a polygon shape into multiple polygons using a splitting line drawn by the on-line user.

To split polygon simply draw the splitting line by clicking in the map window. The splitting line can be complex, formed with an unlimited number of vertices, and can cut the polygon into more than just two shapes. Click on the "Split Shape" button to render the result of the splitting operation. To start again from the beginning, just click "Create New Line" button.