Skip to content

Commit

Permalink
load data, not geojson
Browse files Browse the repository at this point in the history
  • Loading branch information
ramarty committed Dec 6, 2023
1 parent 7f5cc76 commit a134c73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/blackmarbler.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ file_to_raster <- function(f,

tile_i <- f %>% str_extract("h\\d{2}v\\d{2}")

bm_tiles_sf <- read_sf("https://raw.githubusercontent.com/worldbank/blackmarbler/main/data/blackmarbletiles.geojson")
#bm_tiles_sf <- read_sf("https://raw.githubusercontent.com/worldbank/blackmarbler/main/data/blackmarbletiles.geojson")
data("bm_tiles_sf")
grid_i_sf <- bm_tiles_sf[bm_tiles_sf$TileID %in% tile_i,]

grid_i_sf_box <- grid_i_sf %>%
Expand Down
2 changes: 2 additions & 0 deletions readme_figures/build_package.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
if(F){
setwd("~/Documents/Github/blackmarbler")

load("~/Documents/Github/blackmarbler/data/bm_tiles_sf.rda")

roxygen2::roxygenise("~/Documents/Github/blackmarbler")

pkgdown::clean_site()
Expand Down

0 comments on commit a134c73

Please sign in to comment.