Something went wrong. Try again.
R package for downloading OpenStreetMap data
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190# Generated by using Rcpp::compileAttributes() -> do not edit by hand# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#' get_osm_relations#'#' Return a dual Rcpp::DataFrame containing all OSM relations.#'#' @param rels Pointer to the vector of Relation objects#' @param unique_vals Pointer to a UniqueVals object containing std::sets of#' all unique IDs and keys for each kind of OSM object (nodes, ways, rels).#'#' @return A list with three Rcpp::DataFrame with the tags, centers and#' metadata of the relations.#'#' @noRdNULL
#' get_osm_ways#'#' Store key-val pairs for OSM ways as a list/data.frame#'#' @param kv_df Pointer to Rcpp::DataFrame to hold key-value pairs.#' @param way_ids Vector of <osmid_t> IDs of ways to trace.#' @param ways Pointer to all ways in data set.#' @param unique_vals pointer to all unique values (OSM IDs and keys) in data#' set.#'#' @noRdNULL
#' get_osm_nodes#'#' Store OSM nodes as `sf::POINT` objects#'#' @param kv_df Pointer to Rcpp::DataFrame to hold key-value pairs.#' @param nodes Pointer to all nodes in data set.#' @param unique_vals pointer to all unique values (OSM IDs and keys) in data#' set.#'#' @noRdNULL
#' rcpp_osmdata_df#'#' Return OSM data key-value pairs in series of data.frame objects, without any#' spatial/geometrtic information.#'#' @param st Text contents of an overpass API query#' @return Rcpp::List objects of OSM data#'#' @noRdrcpp_osmdata_df <- function(st) { .Call(`_osmdata_rcpp_osmdata_df`, st)}
#' rcpp_osmdata_sc#'#' Return OSM data in silicate (SC) format#'#' @param st Text contents of an overpass API query#' @return Rcpp::List objects of OSM data#' #' @noRd rcpp_osmdata_sc <- function(st) { .Call(`_osmdata_rcpp_osmdata_sc`, st)}
#' get_osm_relations#'#' Return a dual Rcpp::List containing all OSM relations, the first element of#' which holds `multipolygon` relations, while the second holds all others,#' which are stored as `multilinestring` objects.#'#' @param rels Pointer to the vector of Relation objects#' @param nodes Pointer to the vector of node objects#' @param ways Pointer to the vector of way objects#' @param unique_vals Pointer to a UniqueVals object containing std::sets of#' all unique IDs and keys for each kind of OSM object (nodes, ways, rels).#'#' @return A Rcpp::List which contains the geometry, tags and metadata of the#' multipolygon and multilinestring relations.#'#' @noRdNULL
#' get_osm_ways#'#' Store OSM ways as `sf::LINESTRING` or `sf::POLYGON` objects.#'#' @param wayList Pointer to Rcpp::List to hold the resultant geometries#' @param kv_df Pointer to Rcpp::DataFrame to hold key-value pairs#' @param way_ids Vector of <osmid_t> IDs of ways to trace#' @param ways Pointer to all ways in data set#' @param nodes Pointer to all nodes in data set#' @param unique_vals pointer to all unique values (OSM IDs and keys) in data set#' @param geom_type Character string specifying "POLYGON" or "LINESTRING"#' @param bbox Pointer to the bbox needed for `sf` construction#' @param crs Pointer to the crs needed for `sf` construction#'#' @noRdNULL
#' get_osm_nodes#'#' Store OSM nodes as `sf::POINT` objects#'#' @param ptxy Pointer to Rcpp::List to hold the resultant geometries#' @param kv_df Pointer to Rcpp::DataFrame to hold key-value pairs#' @param nodes Pointer to all nodes in data set#' @param unique_vals pointer to all unique values (OSM IDs and keys) in data set#' @param bbox Pointer to the bbox needed for `sf` construction#' @param crs Pointer to the crs needed for `sf` construction#'#' @noRdNULL
#' rcpp_osmdata_sf#'#' Return OSM data in Simple Features format#'#' @param st Text contents of an overpass API query#' @return Rcpp::List objects of OSM data#'#' @noRdrcpp_osmdata_sf <- function(st) { .Call(`_osmdata_rcpp_osmdata_sf`, st)}
#' get_osm_nodes#'#' Store OSM nodes as `sf::POINT` objects#'#' @param ptxy Pointer to Rcpp::List to hold the resultant geometries#' @param kv_mat Pointer to Rcpp::DataFrame to hold key-value pairs#' @param nodes Pointer to all nodes in data set#' @param unique_vals pointer to all unique values (OSM IDs and keys) in data set#' @param bbox Pointer to the bbox needed for `sf` construction#' @param crs Pointer to the crs needed for `sf` construction#'#' @noRdNULL
#' get_osm_ways#'#' Store OSM ways as `sf::LINESTRING` or `sf::POLYGON` objects.#'#' @param wayList Pointer to Rcpp::List to hold the resultant geometries#' @param kv_df Pointer to Rcpp::DataFrame to hold key-value pairs#' @param way_ids Vector of <osmid_t> IDs of ways to trace#' @param ways Pointer to all ways in data set#' @param nodes Pointer to all nodes in data set#' @param unique_vals pointer to all unique values (OSM IDs and keys) in data set#' @param geom_type Character string specifying "POLYGON" or "LINESTRING"#' @param bbox Pointer to the bbox needed for `sf` construction#' @param crs Pointer to the crs needed for `sf` construction#'#' @noRdNULL
#' get_osm_relations#'#' Return a dual Rcpp::List containing all OSM relations, the firmt element of#' which holds `multipolygon` relations, while the second holds all others,#' which are stored as `multilinestring` objects.#'#' @param rels Pointer to the vector of Relation objects#' @param nodes Pointer to the vector of node objects#' @param ways Pointer to the vector of way objects#' @param unique_vals Pointer to a UniqueVals object containing std::sets of all#' unique IDs and keys for each kind of OSM object (nodes, ways, rels).#'#' @return A dual Rcpp::List, the first of which contains the multipolygon#' relations; the second the multilinestring relations.#'#' @noRdNULL
#' rcpp_osmdata_sp#'#' Extracts all polygons from an overpass API query#'#' @param st Text contents of an overpass API query#' @return A \code{SpatialLinesDataFrame} contains all polygons and associated data#'#' @noRdrcpp_osmdata_sp <- function(st) { .Call(`_osmdata_rcpp_osmdata_sp`, st)}