Skip to content

Commit

Permalink
error repair
Browse files Browse the repository at this point in the history
  • Loading branch information
j-miszczyszyn committed Feb 18, 2024
1 parent f0cef35 commit 9ff8f19
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ export(define_nir)
export(define_red)
export(define_rededge)
export(define_yellow)
export(dem_download_big_area_rgugik)
export(ortho_download_big_area_rgugik)
11 changes: 10 additions & 1 deletion R/dem_download_big_area_rgugik.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
#' Title
#'
#' @param x
#' @param y
#'
#' @return
#' @export
#'
#' @examples
dem_download_big_area_rgugik <- function(x, y) {
aoi <- sf::st_read(x)
grid <- sf::st_make_grid(aoi, n = y)
aoi <- sf::st_intersection(aoi, grid)
plot(aoi)
result <- tibble::tibble()
result <- data.frame()
for (i in seq_len(nrow(aoi))) {
req_df <- rgugik::DEM_request(aoi[i, ])
result <- dplyr::bind_rows(result, req_df)
Expand Down
2 changes: 1 addition & 1 deletion R/ortho_download_big_area_rgugik.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ortho_download_big_area_rgugik <- function(x, y) {
grid <- sf::st_make_grid(aoi, n = y)
aoi <- sf::st_intersection(aoi, grid)
plot(aoi)
result <- tibble::tibble()
result <- data.frame()
for (i in seq_len(nrow(aoi))) {
req_df <- rgugik::ortho_request(aoi[i, ])
result <- dplyr::bind_rows(result, req_df)
Expand Down
14 changes: 14 additions & 0 deletions man/dem_download_big_area_rgugik.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9ff8f19

Please sign in to comment.