Learn R Programming

sits (version 0.13.0)

.sits_shp_to_tibble: Obtain a tibble with lat/long points to be retrieved from a SHP

Description

reads a shapefile and retrieves a sits tibble containing a set of lat/long points for data retrieval

Usage

.sits_shp_to_tibble(sf_shape, shp_attr, label, .n_shp_pol)

Arguments

sf_shape

sf object that contains a SHP file

shp_attr

Attribute in the shapefile used as a polygon label

label

Label to be assigned to points

.n_shp_pol

Number of samples per polygon to be read (for POLYGON or MULTIPOLYGON shapes)

Value

A sits tibble with points to to be read.