wrapPoly function

Reproject polygons with wrapping

Reproject polygons with wrapping

Reprojects a SpatialPolygons object to a projection with longitude wrapping other than 180 degreess

wrapPoly(x,crs, buffer.width = 100*1000) llCropBox(crs, buffer.width=50*1000, densify.interval = 25*1000, crop.distance = 2.1e7, crop.poles = FALSE, crop.leftright=FALSE, remove.holes=TRUE, cycles = 2, ellipse=NULL)

Arguments

  • x: A Spatial object
  • crs: Caracther string representing a crs.
  • buffer.width: buffer to add to points on border when cropping poloygons, defaults to 100km
  • densify.interval: interval when densifying
  • crop.distance: crop coordinates larger than this value
  • crop.poles: remove areas near the poles
  • crop.leftright: remove points near 180 longitute line
  • remove.holes: fill holes in the crop region
  • cycles: iterations adding denser points
  • ellipse: boundary of the world in crs coordinates

Returns

A reprojected Spatial object.

See Also

project, examples in tpeqd

  • Maintainer: Patrick Brown
  • License: GPL
  • Last published: 2024-04-16

Useful links