wrapPoly: Reproject polygons with wrapping

View source: R/wrapPoly.R

wrapPolyR Documentation

Reproject polygons with wrapping

Description

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

Usage

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

Value

A reprojected Spatial object.

See Also

project, examples in tpeqd


mapmisc documentation built on Nov. 21, 2023, 5:09 p.m.