Skip to content

Commit 7e93773

Browse files
41 comments (#42)
* Remove dev version of sf * Typo fix * Rm peru, close #41
1 parent 4ad8ad5 commit 7e93773

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

osm.qmd

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,11 @@ pkgs = c(
3333
remotes::install_cran(pkgs)
3434
```
3535

36-
Note: as of 2023-08-31 you also need to install the development version of `sf` as follows:
37-
38-
```r
39-
remotes::install_github("r-spatial/sf")
40-
```
41-
42-
```{r}
43-
#| include: false
44-
# For debugging
45-
# remotes::install_github("r-spatial/sf")
46-
# remotes::install_version("sf", "1.0-10")
47-
# remotes::install_dev("osmextract")
48-
```
49-
5036
You may want to install the following packages for @sec-command-line:
5137

52-
- [osmium](https://osmcode.org/osmium-tool/)
5338
- [pyrosm](https://pyrosm.readthedocs.io/en/latest/)
39+
- [osmnx](https://osmnx.readthedocs.io/en/stable/)
40+
- [osmium](https://osmcode.org/osmium-tool/)
5441
- [osm2streets](https://a-b-street.github.io/osm2streets/#1/0/0) (although this is currently mostly a web UI and does not have a command line interface)
5542

5643
We will get data representing case study areas:
@@ -87,7 +74,7 @@ After saving this query as a file (e.g. called `query.txt`), you can download th
8774
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d @query.txt https://overpass-api.de/api/interpreter > data.osm
8875
```
8976

90-
As outlined in the [`providers_comparison`](https://docs.ropensci.org/osmextract/articles/providers_comparisons.html) vignettte in the [`osmextract`](https://docs.ropensci.org/osmextract/) package, there are several providers of OSM data. The main ones that provide regular extracts without need for logins are:
77+
As outlined in the [`providers_comparison`](https://docs.ropensci.org/osmextract/articles/providers_comparisons.html) vignette in the [`osmextract`](https://docs.ropensci.org/osmextract/) package, there are several providers of OSM data. The main ones that provide regular extracts without need for logins are:
9178

9279
- [geofabrik](https://download.geofabrik.de/)
9380
- [openstreetmap_fr](http://download.openstreetmap.fr/)
@@ -149,14 +136,6 @@ or some countries around the world (less than `geofabrik`'s level 2 zones):
149136
plot(openstreetmap_fr_zones[openstreetmap_fr_zones$level == 2, "name"], key.pos = NULL, main = NULL)
150137
```
151138

152-
It can be noticed that there are several holes (such as Peru, which is the reason why, in the first example, Lima was matched with South America data), implying that `openstreetmap_fr` cannot always be used for geographical matching of a `place`.
153-
Nevertheless, it provides extremely detailed extracts for some regions of the world, like China,
154-
155-
```{r}
156-
#| code-fold: true
157-
plot(openstreetmap_fr_zones[openstreetmap_fr_zones$parent == "china", "name"], key.pos = NULL, main = NULL)
158-
```
159-
160139
India,
161140

162141
```{r}

0 commit comments

Comments
 (0)