This tutorial is partialy based on Yuriy’s Czoli article ‘Processing LiDAR to extract building heights’.
- Install Postgres, PostGIS and OSM-PostGIS tools
brew install postgis
| #' @title split lines | |
| #' @description Splits lines longer than a given threshold into the minimum number of pieces to all be under the given threshold. | |
| #' @param lines data.frame of class sf with LINESTRING sfc column. | |
| #' @param max_length maximum segment length to return | |
| #' @param id name of ID column in data.frame | |
| #' @return only the split lines. | |
| #' @importFrom dplyr group_by ungroup filter left_join select rename mutate | |
| #' @export | |
| #' | |
| split_lines <- function(input_lines, max_length, id = "ID") { |
This tutorial is partialy based on Yuriy’s Czoli article ‘Processing LiDAR to extract building heights’.
brew install postgis