Reading/writing spatial data

read_rast()

read a raster file from disk

read_vect()

read a vector spatial file to R

write_shape()

Write a sf or sp to a ESRI shapefile

Raster processing

mask_rast()

Mask a raster based on a vector

reproj_rast()

Reproject a raster "R" object or file

recategorize_rast()

reclassify values of a raster

set_rastlabels()

Assign labels and plotting colors to a categorical raster

extract_rast()

extract raster values on features of a vector

aggregate_rast()

aggregate_rast

crop_rast()

crop a raster file/rast_file on a given extent

cuttails_rast()

remove outliers from a raster image

standardise_rast() standardize_rast() zscore_rast() rbias_rast() fixborders_rast() fillgaps_rast()

Generate a standardised raster

Vector processing

reproj_vect()

Reproject a vector "R" object or file

crop_vect()

crop a vector on the extent of a different spatial file

dissolve_vect()

dissolve attributes of a vector and aggregate its table

create_fishnet()

Create a "fishnet" vector over the extent of a spatial object

select_extent()

Interactively select an extent

Retrieve info from spatial files

get_extent()

return the extent of a spatial object or file (with projection)

get_rastinfo()

Retrieve useful info from a raster object or file

get_raststats()

Retrieve statistics about value of a raster object

get_proj4string()

return the proj4string of a spatial object or file

Visualization and plotting

plot_rast()

quick plot for a raster based on level_plot

plot_rast_gg()

Plot a map based on a raster object using ggplot

plot_rasthist()

plot the frequency histogram of values of a raster

plot_vect()

plot a map based on a vector object using `ggplot::geom_sf``

DB Interaction

write_vector_to_pgres()

write a spatial table to a PostGIS db table

Data fetching from public repositories

get_boundaries()

Download vector of administrative boundaries from GADM

Miscellaneous Helpers

add_scale_fill()

add a scale_fill palette to a ggplot

sprawlext-class

sprawlext class

cast_vect()

cast a vector object to a different R spatial class or to a shapefile

cast_rast()

automatic recasting between Raster object and raster files on disk

change_fileext()

change file extension

check_proj4string()

Check the validity of the input projection

convert_rastdtype()

convert data type between raster and gdal conventions

create_virtrast()

create a GDAL vrt file starting from a Raster object

datetodoy()

Convert dates to DOYs

doytodate()

convert DOYs to dates

fillpals()

create list of valid fill palettes

find_command()

find the path to a specified command

find_gdal()

find main folder of gdal installation

get_spatype()

check the "spatial type" of an object or file

get_rastype()

Check in the input is a Raster object or raster file

get_vectype()

check the "spatial type" of an object or file

make_folder()

FUNCTION_TITLE

migrate_virtrast()

migrate "virtual rasters" to a new location

reproj_extent()

reproject the extent of a spatial object

summarize_data()

helper function used to extract statistics of raster values within sprawl::extract_rast

sprawl_initcluster()

initialize clustered processing on multiband raster

sprawl_scalebar()

sprawl_scalebar