Skip to content

Latest commit

 

History

History
134 lines (95 loc) · 5.05 KB

NEWS.md

File metadata and controls

134 lines (95 loc) · 5.05 KB

version 0.10.0

  • Add weighted_variance and weighted_stdev operations

version 0.9.1

  • Fix incorrect results for frac and weighted_frac when different polygons intersect different subsets of available categorical values
  • Improve performance of frac and weighted_frac for large sets of input polygons

version 0.9.0

  • Add frac and weighted_frac summary operations, for summarizing categorical rasters
  • Add colname_fun argument to exact_extract, for controlling constructed column names
  • Add rasterize_polygons function to rasterize a polygon coverage, assigning cells to polygon with greatest coverage area

version 0.8.2

  • Fix incorrect read of raster values for value/weighting raster resolutions enabled in version 0.8.1

version 0.8.1

  • Fix incorrect grid compatibility error with certain value and weighting raster resolutions

version 0.8.0

  • 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

version 0.7.2

  • Fix incorrect coverage fraction calculated for certain sliver-shaped polygons with large coordinate values

version 0.7.1

  • Fix include_xy and include_cell arguments for terra inputs
  • Support version 3.5 of raster package

version 0.7.0

  • 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

version 0.6.1

  • 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.)

version 0.6.0

  • 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

version 0.5.1

  • 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.

version 0.5.0

  • 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

version 0.4.0

  • 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.

version 0.3.0

  • 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

version 0.2.1

  • Fix incorrect results for some polygons that exactly follow boundaries of raster grid cells
  • Update tests for compatibility with sf >= 0.9.0

version 0.2.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

version 0.1.2

  • Generate zero-row data frame for polygons not intersecting the raster

version 0.1.1

  • 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.

version 0.1.0

  • Initial release to CRAN