Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 1.81 KB

File metadata and controls

32 lines (18 loc) · 1.81 KB

home2park (development version)

Bug fixes

  • Remove lines in rasterise_buildings() that clear temporary files used by the terra package, as these may cause the function output to go missing later on (if export directory is not specified).

home2park 0.1.1

Bug fixes

  • Helper function raster_class_area(). The use of terra::extract() may output an additional third area column 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 the glue::glue() function also did not work within package environment.

  • In get_buildings_osm(), add removal of invalid building polygons which remained in spite of st_make_valid(). Related to r-spatial/sf#1649. Also, add arguments for sf::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_buildings and sf_pop if supplied; similar crs between sf_buildings and rastertemplate).
  • In pop_dasymap()

    • Remove argument raster_template, and replaced with raster from argument land_relative_density.

home2park 0.1.0

  • Finish development of main functions
  • Prepare for journal submission