convertLayer: Convert Shapefile Layer to Spatial Polygon Dataframe

Description Usage Arguments Value

View source: R/convertLayer.R

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

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


MazamaSpatialUtils documentation built on Aug. 4, 2017, 1:01 a.m.