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 "+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

1
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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.