Learn R Programming

MazamaSpatialUtils (version 0.8.6)

convertLayer: Convert shapefile layer to simple features dataframe

Description

Raw shapefiles are read in using st_read. Spatial data are reprojected onto a standard projection (https://epsg.io/4269) before being returned.

If shapefiles have no projection information they are assumed to 'geographic' coordinates .

Usage

convertLayer(dsn = NULL, layer)

Value

An object of class sf.

Arguments

dsn

dsn argument to sf::st_read().

layer

layer argument to sf::st_read().