Clip2Coast: Clip Polygons to the Antarctic coastline

View source: R/Clip2Coast.R

Clip2CoastR Documentation

Clip Polygons to the Antarctic coastline

Description

Clip Polygons to the Coast (removes polygon parts that fall on land) and computes the area of the resulting polygon. Uses an sf object as input which may be user-generated or created via buffered points (see create_Points), buffered lines (see create_Lines) or polygons (see create_Polys).

Usage

Clip2Coast(Input)

Arguments

Input

sf polygon(s) to be clipped.

Value

sf polygon carrying the same data as the Input.

See Also

Coast, create_Points, create_Lines, create_Polys, create_PolyGrids.

Examples


MyPolys=create_Polys(PolyData,Densify=TRUE,Buffer=c(10,-15,120))
plot(st_geometry(MyPolys),col='red')
plot(st_geometry(Coast[Coast$ID=='All',]),add=TRUE)
MyPolysClipped=Clip2Coast(MyPolys)
plot(st_geometry(MyPolysClipped),col='blue',add=TRUE)
#View(MyPolysClipped)



CCAMLRGIS documentation built on Sept. 27, 2023, 9:09 a.m.