View source: R/featuresForElevations.R
featuresForElevations
create and save the laters of a rasterStack
containing the feature data for an elevation raster
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | featuresForElevations(
rasterFileSetName,
rasterDir,
shapefileDir = NULL,
USStatevec = NULL,
CAProvincevec = NULL,
featureDataSource = "Shapefiles",
writeShapefiles = TRUE,
includeAllRoads = FALSE,
year = 2017,
zeroBufferTowns = FALSE,
zeroBufferWater = FALSE,
workProj4 = "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0",
mapbuffer = 0,
mapmergebuffer = 0,
sliceFeatureBuffer = 0,
maxRasterize = 1e+05,
polyClean = FALSE,
polySimplify = 0,
polyMethod = "vis",
polyWeighting = 0.85,
polySnapInt = 1e-04,
silent = FALSE,
noisy = FALSE,
...
)
|
rasterFileSetName |
vector of names of saved raster data files |
rasterDir |
location to load and save raster files |
shapefileDir |
location to load/save shapefiles |
USStatevec |
vector of standard 2-letter abbreviations of US states, or pre-defined regional aggregations of states for use in defining map or finding features to include in the map |
CAProvincevec |
vector of standard 2-letter abbreviations of Canadian provinvces states, or pre-defined regional aggregations of states for use in defining map or finding features to include in the map |
featureDataSource |
"Shapefiles" to load saved shapefiles, "TIGER" to fetch TIGER data for US states, "Raster" to load saved raster data from directory specified |
writeShapefiles |
write/overwrite shapefiles if TIGER data is used |
includeAllRoads |
include all roads in shapefile, not just highways |
year |
numeric year to use in calls for map boundaries/features |
zeroBufferTowns |
use zero buffer trick to repair town polygon shapefile |
zeroBufferWater |
use zero buffer trick to repair water polygon shapefile |
workProj4 |
coordinte reference projection string |
mapbuffer |
numeric value to expand defined map |
mapmergebuffer |
numeric value to expand components of the map defined before merging, to eliminate gaps from minor boundary inconsistencies |
sliceFeatureBuffer |
numeric value to expand the extent of the area used to estrict features befire rasterization |
maxRasterize |
number of items for calls to rasterize |
polyClean |
fix topology errors |
polySimplify |
amount of polygon simplification, see help for rmapshaper::ms_simplify |
polyMethod |
simplification method either "vis" or "dp" |
polyWeighting |
see help for rmapshaper::ms_simplify |
polySnapInt |
see help for rmapshaper::ms_simplify |
silent |
logical, suppress most output |
noisy |
logical, more output to track progress |
... |
values passed through |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.