Locate Polygons on the Current Plot
Locate polygons on the current plot (using the locator
function).
locatePolys (pdata, n = 512, type = "o", ...)
pdata |
PolyData (optional) with
columns |
n |
maximum number of points to locate. |
type |
one of |
... |
If a pdata
object exists, the function ignores columns other
than PID
, SID
, n
, and type
. If pdata
includes n
, then an outer boundary has n > 0
and an
inner boundary has n < 0
.
If a pdata
object does not exist, the output contains only one
polygon with a PID
equal to 1. One inner-boundary polygon
(POS
goes from n
to 1
) can be generated by
supplying a negative n
.
If type = "o"
or type = "l"
, the function draws a line
connecting the last and first vertices.
PolySet with projection
attribute equal to the map's
projection. The function does not set the zone
attribute.
Nicholas M. Boers, Associate Professor – Computer Science
MacEwan University, Edmonton AB
Last modified Rd: 2007-06-06
#--- define one polygon with up to 5 vertices on the current plot ## Not run: polys <- locatePolys(n = 5)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.