GEOmap.breakpoly function

Break up a polygon

Break up a polygon

GEOmap.breakpoly(Z, ww)

Arguments

  • Z: list, x,y locations
  • ww: vector of indecies where NAs occur

Details

The NA values in Z represent breaks. GEOmap.breakpoly breaks the polygon up into individual strokes. The beginning and the ending of the stroke are combined.

Returns

  • newx: list of x values

  • newy: list of y values

Author(s)

Jonathan M. Leesjonathan.lees@unc.edu

See Also

fixCoastwrap, GEOmap.breakline

Examples

x=1:100 y = 1:100 ww = c(25, 53, 75) A = list(x=x, y=y) W = GEOmap.breakpoly(A , ww)
  • Maintainer: Jonathan M. Lees
  • License: GPL (>= 2)
  • Last published: 2024-07-09

Useful links