MazamaSpatialUtils (version 0.6.4)

convertLayer: Convert Shapefile Layer to Spatial Polygon Dataframe

Description

Raw shapefiles are read in using the rgdal::readOGR() function from the rgdal package. Spatial data are reprojected onto a standard projection with a CRS class of "+proj=longlat +ellps=GRS80 +datum=NAD83 +no_defs" before being returned.

If shapefiles have no projection information they are assumed to 'geographic' coordinates and will be assigned "+proj=longlat +ellps=GRS80 +datum=NAD83 +no_defs" before being returned.

Usage

convertLayer(dsn = "", layerName = "", encoding = NULL)

Arguments

dsn

dsn argument to readOGR

layerName

layer argument to readOGR

encoding

encoding string (.e.g. 'latin1') passed to rgdal::readOGR()

Value

An object of class SpatialPolygonsDataFrame