Learn R Programming

sits (version 1.1.0)

.sits_sf_to_tibble: Obtain a tibble with lat/long points to be retrieved from an sf object

Description

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

Usage

.sits_sf_to_tibble(sf_object, label_attr, label, n_sam_pol, pol_id)

Value

A sits tibble with points to to be read.

Arguments

sf_object

sf object .

label_attr

Attribute in the sf object used as a polygon label.

label

Label to be assigned to points.

n_sam_pol

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

pol_id

ID attribute for polygons.