Skip to content

Commit

Permalink
permit GDAL < 3.7.0 by unzipping zipped gpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbivand committed Sep 10, 2024
1 parent 28983fb commit 25fd95b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion man/bhicv.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (GDAL37) {
bh <- st_read(zipfile)
} else {
td <- tempdir()
bn <- sub(".zip", "", basename(file))
bn <- sub(".zip", "", basename(file), fixed=TRUE)
target <- unzip(zipfile, files=bn, exdir=td)
bh <- st_read(target)
}
Expand Down
2 changes: 1 addition & 1 deletion man/mstree.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if (GDAL37) {
bh <- st_read(zipfile)
} else {
td <- tempdir()
bn <- sub(".zip", "", basename(file))
bn <- sub(".zip", "", basename(file), fixed=TRUE)
target <- unzip(zipfile, files=bn, exdir=td)
bh <- st_read(target)
}
Expand Down
2 changes: 1 addition & 1 deletion man/read.gwt2nb.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ if (GDAL37) {
cal <- st_read(zipfile)
} else {
td <- tempdir()
bn <- sub(".zip", "", basename(file))
bn <- sub(".zip", "", basename(file), fixed=TRUE)
target <- unzip(zipfile, files=bn, exdir=td)
cal <- st_read(target)
}
Expand Down
2 changes: 1 addition & 1 deletion man/skater.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ if (GDAL37) {
bh <- st_read(zipfile)
} else {
td <- tempdir()
bn <- sub(".zip", "", basename(file))
bn <- sub(".zip", "", basename(file), fixed=TRUE)
target <- unzip(zipfile, files=bn, exdir=td)
bh <- st_read(target)
}
Expand Down
6 changes: 3 additions & 3 deletions vignettes/subgraphs.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if (GDAL37) {
w50m <- st_read(zipfile)
} else {
td <- tempdir()
bn <- sub(".zip", "", basename(file))
bn <- sub(".zip", "", basename(file), fixed=TRUE)
target <- unzip(zipfile, files=bn, exdir=td)
w50m <- st_read(target)
}
Expand Down Expand Up @@ -177,7 +177,7 @@ if (GDAL37) {
sc50m <- st_read(zipfile)
} else {
td <- tempdir()
bn <- sub(".zip", "", basename(file))
bn <- sub(".zip", "", basename(file), fixed=TRUE)
target <- unzip(zipfile, files=bn, exdir=td)
sc50m <- st_read(target)
}
Expand Down Expand Up @@ -375,7 +375,7 @@ if (GDAL37) {
tokyo <- st_read(zipfile)
} else {
td <- tempdir()
bn <- sub(".zip", "", basename(file))
bn <- sub(".zip", "", basename(file), fixed=TRUE)
target <- unzip(zipfile, files=bn, exdir=td)
tokyo <- st_read(target)
}
Expand Down

0 comments on commit 25fd95b

Please sign in to comment.