- Breaking changes:
merge_rasters
loses the argumentmerge_raster
. For the "georeference a single image" use case, see the newgeoreference_overlay
function.get_tiles
gains an argumentresolution
(details below) betweenside_length
andservices
. No functionality should be changed, but code with unnamed arguments toservices
,verbose
, orgeoreference
may be impacted.
- New features:
- A new family of functions for dealing with overlay creation:
vector_to_overlay
lets users quickly produce image overlays from vector data.georeference_overlay
replaces the use of merge_raster for creating single-file georeferenced overlay files.combine_overlays
lets users, well, combine overlays into a single image
get_tiles
gains an argument,resolution
, specifying the number of meters each pixel should represent (so higher images result in smaller downloads).get_bbox
provides an S3 generic to createterrainr_bounding_box
objects. In this version, that means users can useget_bbox
to get bounding boxes fromsf
andRasterLayer
objects, and it means adding methods will be easier going forward. The genericget_bbox
method is equivalent toget_coord_bbox
raster_to_raw_tiles
handles rectangles appropriately
- A new family of functions for dealing with overlay creation:
- Improvements and bug fixes:
get_tiles
,raster_to_raw_tiles
, andmerge_rasters
are now much more conscientious about deleting tempfiles when they're done with them.merge_rasters
no longer fails when handed a mix of 3- and 4-band raster files. The current implementation will cast all 4 band rasters to 3 band images and then return a 3 band raster image.- The
output_image
argument tomerge_rasters
now has a default value oftempfile(fileext = ".tif")
to be a little more friendly to users. - Arguments
lat
andlng
toget_bbox
(andget_coord_bbox
) no longer need to be quoted -- either the tidyverse-feeling NSE approach or the more standard quoted argument approach will work.
- Internal changes:
- All terrainr-provided functions now explicitly use the terrainr:: namespace.
- Changes in dependencies:
sf
has been added as an explicit import due tovector_to_overlay
.sf
is required bygdalUtilities
, also imported by this package, so this change should have no impact on users.rlang
is added as a dependency to allowlat
andlng
be unquoted inget_bbox
.ggplot2
has been added toSuggests
due tovector_to_overlay
.jpeg
andtiff
have been added toSuggests
due togeoreference_overlay
. I'd expect more image libraries to join this list over time.
- New features:
- set_bbox_side_length wraps add_bbox_buffer to set each side of the bounding box to an equal length (within ~1% accuracy)
- First version released on GitHub
- First development version
- Supports retrieval from 3DEP and NAIP data sources
- Supports export to Unity-friendly format
- Functions in this version:
- Utility functions:
- add_bbox_buffer
- calc_haversine_distance
- convert_distance
- deg_to_rad
- get_bbox_centroid
- get_coord_bbox
- point_from_distance
- rad_to_deg
- Data retrieval functions:
- get_tiles
- hit_national_map_api
- Data processing functions:
- merge_rasters
- raster_to_raw_tiles
- Classes and class utility functions:
- terrainr_bounding_box (class)
- terrainr_coordinate_pair (class)
- terrainr_bounding_box (creation utility)
- terrainr_coordinate_pair (creation utility)
- export_bounding_box
- export_coord_pair
- Utility functions: