View source: R/vector_bathymetry.R
vector_bathymetry | R Documentation |
Vectorizes bathymetry rasters. Designed to be used for the output of raster_bathymetry
function. Warning: processing may take a long time if the bathymetry raster is large.
vector_bathymetry(
bathy,
drop.crumbs = NULL,
remove.holes = NULL,
smooth = FALSE
)
bathy |
bathyRaster object from the |
drop.crumbs |
Single numeric value specifying a threshold (area in km2) for disconnected polygons which should be removed. Set to |
remove.holes |
Single numeric value specifying a threshold (area in km2) for holes which should be removed. Set to |
smooth |
Logical indicating whether the pixelated contours should be smoothed. Uses the smooth_ksmooth function. |
The drop.crumbs
and remove.holes
arguments can be used to make the resulting object smaller in file size. The smooth
argument can be used to remove the pixelated contours, but often increases file size. Note also that using this option will bias the contours with respect to real world.
An sf object containing the depth polygons. Uses same projection than bathy
(see CRS
).
Mikko Vihtakari
Other create shapefiles:
clip_shapefile()
,
geonorge_bathymetry()
,
raster_bathymetry()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.