Learn R Programming

sits (version 1.1.0)

.sits_shp_check_validity: Check the validity of the shape file and return an sf object

Description

Check the validity of the shape file and return an sf object

Usage

.sits_shp_check_validity(shp_file, shp_attr = NULL, label = NULL)

Value

A valid sf object of POINT or POLYGON geometry.

Arguments

shp_file

SHP file which provides the boundaries of a region.

shp_attr

attribute in the shapefile that contains the label

label

Label to be used instead of shp_attr