Fast raster extraction and manipulation in R

velox is an R package for performing fast extraction and manipulation operations on geospatial raster data. velox is fast because:

velox is fully interoperable with the raster, sp, and sf packages.

Travis-CI Build Status codecov CRAN Version develVersion CRAN Downloads


Optimized for speed

Aggregating September 2017 nightlight emissions for 2268 Swiss communes takes 0.84 seconds in velox and 54.76 seconds in raster.


Features

velox currently offers the following features:

  • Raster value extraction given polygons, lines, or points
  • Focal value calculation (i.e. moving window filters)
  • Rasterization of polygons or lines
  • Raster aggregation
  • Cropping
  • Image patch flattening and reconstruction