Clip2Coast {CCAMLRGIS}R Documentation

Clip Polygons to a simplified 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). N.B.: this function uses a simplified coastline. For more accurate results, load the high resolution coastline (see load_Coastline), and use sf::st_difference().

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)



[Package CCAMLRGIS version 4.1.1 Index]