convertLayer: Convert Shapefile Layer to Spatial Polygon Dataframe

Description Usage Arguments Value

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



Search within the MazamaSpatialUtils package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.