- Add
weighted_variance
andweighted_stdev
operations
- Fix incorrect results for
frac
andweighted_frac
when different polygons intersect different subsets of available categorical values - Improve performance of
frac
andweighted_frac
for large sets of input polygons
- Add
frac
andweighted_frac
summary operations, for summarizing categorical rasters - Add
colname_fun
argument toexact_extract
, for controlling constructed column names - Add
rasterize_polygons
function to rasterize a polygon coverage, assigning cells to polygon with greatest coverage area
- Fix incorrect read of raster values for value/weighting raster resolutions enabled in version 0.8.1
- Fix incorrect grid compatibility error with certain value and weighting raster resolutions
- Eagerly load more data into memory to provide better performance for suboptimally-chunked rasters
- Add grid_compat_tol argument to exact_extract and relax from previously hardcoded default
- Avoid error when include_area = TRUE and polygon does not intersect raster
- Support terra SpatRaster inputs to coverage_fraction
- Produce error instead of incorrect result when processing SpatRaster with duplicate names
- Add coverage_area argument to exact_resample
- Allow use of user-defined summary function in exact_resample
- Allow multi-layer inputs to exact_resample
- Fix incorrect coverage fraction calculated for certain sliver-shaped polygons with large coordinate values
- Fix include_xy and include_cell arguments for terra inputs
- Support version 3.5 of raster package
- Support terra SpatRaster inputs
- Fix build using Windows/UTF-8 toolchain (Tomas Kalibera)
- Improve performance of predefined summary operations on RasterStacks with many layers
- Fix behavior of append_cols when summary function returns a multi-row data frame or vector of length > 1 for each feature
- Fix Solaris build
- Avoid undefined behavior when extracting values for polygon entirely outside raster extent
- Fix incorrect results for GeometryCollections with more than one component (previously sf::st_cast was used to convert these to MultiPolygons, but st_cast only processes the first component.)
- Support use of RasterStack weights in exact_extract named summary operations
- Support use of weights in exact_extract R summary functions
- Support SpatialPolygons and SpatialPolygonsDataFrame inputs
- Support exact_resample with mode, minority, variety, median, quantiles
- Add default_value and default_weight arguments to exact_extract
- Add coverage_area argument to exact_extract
- Add summarize_df argument to exact_extract
- Accept weights='area' in exact_extract
- Fix bug causing progress bar to jump to 100%
- Fix check for data frame in return from R function in exact_extract to allow for derived data frame types such as tibbles.
- Add exact_resample
- Add force_df and full_colnames arguments to exact_extract, to obtain output in a consistent format
- Add include_cols and append_cols arguments to exact_extract for linking pixels values or summarized results to input features
- Add median and quantile summary operations
- Add stack_apply argument to exact_extract to apply an R function individually to each layer in a RasterStack / RasterBrick.
- Support returning a data frame from an R function applied to each polygon, then combining those data frames with dplyr::bind_rows
- Add named summary operations for variance, standard deviation, coefficient of variation
- Improve performance, most dramatically for named summary operations on RasterStack or RasterBrick inputs.
- Avoid floating point robustness error when computing stats on certain polygons using different resolution value and weighting rasters.
- Add include_cell argument to exact_extract (Michael Sumner)
- Fix error thrown by exact_extract when a polygon is partially outside the extent of the value raster but fully within the extent of the weighting raster.
- Avoid error when processing polygons with a Z dimension on GEOS 3.6
- Support sfc_GEOMETRY inputs if all features are polygonal
- Fix incorrect results for some polygons that exactly follow boundaries of raster grid cells
- Update tests for compatibility with sf >= 0.9.0
- Add weighted mean and weighted sum operations to summarize one raster using the values of another (e.g., population-weighted mean temperature)
- Support use of named summary options on RasterStack and RasterBrick inputs (reduces verbosity, improves performance)
- Fix memory leak in CPP_coverage_fraction
- Generate zero-row data frame for polygons not intersecting the raster
- Attempt to revert to static linking against GEOS if dynamic linking fails
- Avoid undefined behavior when calling
exact_extract
on polygon that does not intersect raster.
- Initial release to CRAN