shapefile_vector_from_raster: Create vector from a raster.

shapefile_vector_from_rasterR Documentation

Create vector from a raster.

Description

This function takes a raster of a shapefile (for example the urban areas of Australia), and creates a shapefile (i.e. a vector). It uses the rmaxent package https://github.com/johnbaums/rmaxent It assumes that the input df is that returned by the prepare_sdm_table function

Usage

shapefile_vector_from_raster(shp_file, prj, agg_var, temp_ras, targ_ras)

Arguments

shp_file

SpatialPolygonsDataFrame - Spdf of spatial units used to aggregate the SDMs (e.g. urban areas of Australia)

prj

CRS object - Local projection for mapping the shapefile (e.g. Australian Albers)

agg_var

Character string - The field name in the shapefile to use for aggregating SDM results (e.g. Urban area codes)

temp_ras

Raster - An existing raster with the same extent, resolution and projection as the maxent models (e.g. Australia)

targ_ras

Raster - An existing raster of the shapefile with the same extent, resolution and projection as the maxent models (e.g. Australia)

sort_var

Character string - The field name in the shapefile to use for sorting (e.g. Urban area names)


HMB3/nenswniche documentation built on Jan. 31, 2023, 11:46 p.m.