LOAD.AND.PREP.GIS: Load and Prep a Shapefile

Description Usage Arguments Value Examples

View source: R/loadGISFiles.R

Description

This function loads a shapefile and preps it so that it can be used to cut up rasters. ****This needs to be updated to account for multi-part polygons

Usage

1
2
LOAD.AND.PREP.GIS(SHPNAME, PROJECT.PATH = PROJECT.PATH,
  PROJ.USE = PROJ.USE)

Arguments

SHPNAME

the name of the shapefile to be loaded

PROJECT.PATH

the filepath of the shapefile

PROJ.USE

the CRS projection object of the shapefile

Value

The output is a Large SpatialPolygon S4 object

Examples

1
2
3
4
LOAD.AND.PREP.GIS("East_Cst_cropped",
    "C:/Users/dennis.corvi/Documents/R/Projects/east_cst_crop",
    sp::CRS('+proj=aea +lat_1=28 +lat_2=42 +lat_0=40 +lon_0=-96 +x_0=0 +y_0=0 +datum=NAD83
    +units=m +no_defs +ellps=GRS80 +towgs84=0,0,0 '))

dcorvi/r_testpackage documentation built on Nov. 4, 2019, 10:20 a.m.