address some errors in worldclim download, improve flexibility of function to accept sfc, improve vector reprojection to retain shape better, improve cropping to reduce data deletion and maintain better coverage
What changes have been made?
change regionGeometry_buffer & is.subset to camelCase throughout
functions/get_worldclim.R - enable use of sfc, improve vector reprojection with st_segmentize,
change default buffer to 0, remove cropping
functions/is.subset.r - enable use of sfc, improve vector reprojection with st_segmentize, extract vectorize function
pipeline/import/environmentalImport.R - reorder raster cropping to improve reprojection of raster & retain data in rectangle form, & tidy if/else arguments (eg remove redundancy in defining regionGeometryBuffer & reorder env download from if (external == FALSE) to if (external) )
pipeline/import/utils/defineEnvSource.R - enable use of sfc
Why have changes been made?
What changes have been made?