Title: | Download Overture Maps Data in R |
---|---|
Description: | Overture Maps offers free and open geospatial map data sourced from various providers and standardized to a common schema. This tool allows you to download Overture Maps data for a specific region of interest and convert it to several different file formats. For more information, visit <https://overturemaps.org/download/>. |
Authors: | Dennis Irorere [aut, cre, cph] |
Maintainer: | Dennis Irorere <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.4 |
Built: | 2024-11-09 04:52:54 UTC |
Source: | https://github.com/denironyx/overturemapsr |
This function returns the S3 path for the specified Overture dataset type.
dataset_path(overture_type)
dataset_path(overture_type)
overture_type |
Character. Required. The type of feature to select.
Examples include 'building', 'place', etc. To learn more, run |
Character. The S3 path to the bucket where the data is stored.
# Example usage path <- dataset_path('place') print(path)
# Example usage path <- dataset_path('place') print(path)
This function returns all of the overturemaps theme types.
get_all_overture_types()
get_all_overture_types()
Character vector. All overturemaps theme types.
The theme types are important for fetching data from the S3 bucket, as they indicate if you are fetching places, buildings, admin, etc.
# Example usage types <- get_all_overture_types() print(types)
# Example usage types <- get_all_overture_types() print(types)
This function retrieves a filtered dataset from the specified Overture dataset type,
optionally within a bounding box, and converts it to an sf
object.
record_batch_reader(overture_type, bbox = NULL)
record_batch_reader(overture_type, bbox = NULL)
overture_type |
Character. Required. The type of feature to select. Examples include 'building', 'place', etc.
To learn more, run |
bbox |
Numeric vector. Optional. A bounding box specified as c(xmin, ymin, xmax, ymax). It is recommended to use a bounding box to limit the dataset size and processing time. Without a bounding box, processing the entire dataset (e.g., buildings over 2 billion) can be time-consuming. |
An sf
object containing the filtered dataset based on the bounding box.
# Example usage with a bounding box takes > 20 secs sf_bbox <- c(-122.5, 37.7, -122.3, 37.8) result <- record_batch_reader(overture_type = 'place', bbox = sf_bbox) print(result)
# Example usage with a bounding box takes > 20 secs sf_bbox <- c(-122.5, 37.7, -122.3, 37.8) result <- record_batch_reader(overture_type = 'place', bbox = sf_bbox) print(result)