dividePolys: Divide a Single Polygon into Several Polygons

View source: R/PBSmapping.r

dividePolysR Documentation

Divide a Single Polygon into Several Polygons

Description

Divide a single polygon (with several outer-contour components) into several polygons, a polygon for each outer contour, by modifying the PID and SID indices.

Usage

dividePolys (polys)

Arguments

polys

PolySet with one or more polygons, each with possibly several components/holes.

Details

Given the input PolySet, this function renumbers the PID and SID indices so that each outer contour has a unique PID and is followed by all of its holes, identifying them with SIDs greater than one.

Value

PolySet, possibly with the addition of an SID column if it did not already exist. The function may also reorder columns such that PID, SID, POS, X and Y appear first, in that order.

Author(s)

Nicholas M. Boers, Staff Software Engineer
Jobber, Edmonton AB
Last modified Rd: 2007-06-06

See Also

combinePolys.


PBSmapping documentation built on Sept. 30, 2024, 9:21 a.m.