-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opq parameter to select a set of OSM types #295
Conversation
Draft until PR #291 |
6f47d67
to
97d0d41
Compare
Last commit is not really related but it fix opq_osm_id wich I discovered while using the package |
Queries in opq_string still produce the same indentation and spaciation
Rebased and ready for review @mpadge |
That looks great @jmaspons, thanks again for the great work. I just have one question: What is the intention of exposing "area" as an Test code: opq (bbox = c (-0.118, 51.514, -0.115, 51.517), osm_types = "area") |>
add_osm_feature (key = "highway") |>
osmdata_xml (q, filename = "junk.osm", quiet = FALSE) There are all kinds of overpass XML elements that are possible, but for which this package will have to adapted in the future, if and when anybody requests any features like that. I think that "area" in this case might be best just left out of acceptable |
These elements are returned as as <area> elements in XML, which the osmdata code does not know what to do with. All functions still work in these cases, but the <area> elements, and thus all multipolygons and most polygons, simply get ignored.
Ok, |
test-coverage checks failed 2 times in a row. Is there any reason or just a random thing? |
Thanks! The test failures are not random. If you click open a couple of layers deep, you get to this:
Can you just tweak that test to |
I would expect that also all R-CMD-check fails 🤷♂️. Should be related to #298. I will reorder names as I don't expect to change quite often |
Closes #257 (and the duplicated #293)