Description Usage Arguments Value Note Examples
Read an (XML format) OSM Overpass response from a string, a connection, or a raw vector.
1 | read_osm(osm_response, encoding = "")
|
osm_response |
file containing an OSM Overpass (XML) response. Can be
A string, a connection, or a raw vector. |
encoding |
Specify a default encoding for the document. Unless otherwise specified XML documents are assumed to be in UTF-8 or UTF-16. If the document is not UTF-8/16, and lacks an explicit encoding directive, this allows you to supply a default. |
If the query
result only has OSM node
s then the function
will return a SpatialPointsDataFrame
with the node
s.
If the query
result has OSM way
s then the function
will return a SpatialLinesDataFrame
with the way
s
relations
s are not handled yet.
You can disable progress bars by calling pbapply::pboptions(type="none")
in your
code. See pboptions
for all the various progress bar settings.
1 | mammoth <- read_osm(system.file("osm/mammoth.osm", package="overpass"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.