Skip to content

Commit bb0aabf

Browse files
committed
Add details on PBF file location
1 parent 1e17055 commit bb0aabf

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

osm.qmd

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,14 +250,33 @@ poznan = oe_get("Poznan", provider = "bbbike", layer = "points", force_vectortra
250250
# Starting with the vectortranslate operations on the input file!
251251
# 0...10...20...30...40...50...60...70...80...90...100 - done.
252252
# Finished the vectortranslate operations on the input file!
253-
# Error: Not compatible with requested type: [type=character; target=double].
254253
```
255254

256255
```{r}
257256
#| eval: false
258257
poznan = oe_get("Poznan", provider = "bbbike", force_vectortranslate = TRUE)
259258
```
260259

260+
Find where the file is as follows:
261+
262+
```{r}
263+
#| eval: false
264+
poznan_file = oe_find("Poznan", provider = "bbbike", return_gpkg = FALSE)
265+
# [1] "/home/robin/data/osm/bbbike_Poznan.osm.pbf"
266+
```
267+
268+
Note: you can check the location where datasets will be downloaded and translated using the [`oe_set_download_directory()`](https://docs.ropensci.org/osmextract/reference/oe_download_directory.html) function (see `?oe_set_download_directory` for details).
269+
270+
We uploaded data for Poznan to [github.com/Robinlovelace/opengeohub2023/releases](https://github.com/Robinlovelace/opengeohub2023/releases/tag/v2).
271+
For future reference, you can access the 25 MB PBF file from https://github.com/Robinlovelace/opengeohub2023/releases/download/v2/bbbike_Poznan.osm.pbf
272+
273+
```{r}
274+
#| eval: false
275+
file.copy(poznan_file, ".")
276+
msg_upload_github = glue::glue("gh release create v2 {poznan_file}")
277+
system(msg_upload_github)
278+
```
279+
261280
Note: that takes quite a while download, so we will use a smaller extract for the rest of the session:
262281

263282
```{r}

0 commit comments

Comments
 (0)