forceCCW function

force counter-clockwise polygons

force counter-clockwise polygons

Assure that the nodes of outer rings of polygons are in counter-clockwise order.

## S4 method for signature 'SpatVector' forceCCW(x)

Arguments

  • x: SpatVector of polygons

Returns

SpatVector

Examples

p <- vect("POLYGON ((2 45, 2 55, 18 55, 18 45, 2 45))") pcc <- forceCCW(p) geom(pcc, wkt=TRUE)
  • Maintainer: Robert J. Hijmans
  • License: GPL (>= 3)
  • Last published: 2025-02-26