check_onland: Check which points are located on land.

Description Usage Arguments Value See Also Examples

View source: R/check_onland.R

Description

Check which points are located on land.

Usage

1
2
check_onland(data, land = NULL, report = FALSE, buffer = 0,
  offline = FALSE)

Arguments

data

The data frame.

land

SpatialPolygonsDataFrame. If not provided the simplified land polygons from OSM are used. This parameter is ignored when, offline = FALSE.

report

If TRUE, errors are returned instead of records.

buffer

Set how far inland points are still to be deemed valid (in meters).

offline

If TRUE, a local simplified shoreline is used, otherwise an OBIS webservice is used. The default value is FALSE.

Value

Errors or problematic records.

See Also

check_depth check_outliers_dataset check_outliers_species lookup_xy

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
report <- check_onland(abra, report = TRUE, buffer = 100)
print(report)
# plot records on land with 100 meter buffer
plot_map_leaflet(abra[report$row,], popup = "id")
# filter records not on land
ok <- abra[-1 * report$row,]
ok <- check_onland(abra, report = FALSE, buffer = 100)
print(nrow(ok))

## End(Not run)

sharksmhi/tryout documentation built on Dec. 27, 2019, 5:34 a.m.