r-tmap / r-tmap/tmaptools

read_osm

Open
#41 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
43
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Hi there, i am having issues with the argument type="osm". Other types like "esri" work. Sorry if this is something easy, but i can't work out what is going on.

library(tmap)
library(tmaptools)
library(sf)
#> Linking to GEOS 3.6.1, GDAL 2.2.3, PROJ 4.9.3
tmap_mode("plot")
#> tmap mode set to plotting
data(NLD_muni)
NLD_bb <- bb(st_transform(NLD_muni, 4326))
test <- read_osm(NLD_bb, type = "osm")
tm_shape(test) + tm_rgb()

Gives error: Error in osmtile(x%%nX, y, zoom, type) : could not obtain tile: 130 82 8

Changing type to 'esri' works!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the example using read_osm with type = "osm" and compare it with the working "esri" case. Start by tracing read_osm to the osmtile call shown in the error; done means the OSM example obtains its tiles without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.