- Remove lines in
rasterise_buildings()that clear temporary files used by theterrapackage, as these may cause the function output to go missing later on (if export directory is not specified).
-
Helper function
raster_class_area(). The use ofterra::extract()may output an additional thirdareacolumn that is unused. Only keep first 2 columns of output. -
Fix error in
rasterise_buildings(). Getting the files for land use rasters resulted in an error (e.g. multiple files). Syntax for re-naming for the output using theglue::glue()function also did not work within package environment. -
In
get_buildings_osm(), add removal of invalid building polygons which remained in spite ofst_make_valid(). Related to r-spatial/sf#1649. Also, add arguments forsf::st_write()(e.g.driver,delete_dsn,append). -
In
rasterise_buildings_osm()- Change default argument for 'year' to
NULL, as multiple years may not necessarily be analysed. Add section to rasterise buildings without information on the 'year'. Assumes that only one population/landuse rasters were generated in pre-processing step too; if there are multiple, uses the first object for analysis. - Allow raster template (
terra::rast()object) to be input directly as argument, or alternatively supply file path to the raster file. - Check if CRS are similar between supplied objects (e.g. similar crs between
sf_buildingsandsf_popif supplied; similar crs betweensf_buildingsandrastertemplate).
- Change default argument for 'year' to
-
In
pop_dasymap()- Remove argument
raster_template, and replaced with raster from argumentland_relative_density.
- Remove argument
- Finish development of main functions
- Prepare for journal submission