A Python package for downloading and processing Overture Maps geospatial data with configurable bounding box extraction and data management.
Project description
Overture Maps Geoparquet Package
Overview
The Overture Maps Geoparquet Package is a Python library designed for downloading and processing geospatial data from Overture Maps in a user-friendly way. This package allows users to specify an Area of Interest (AOI) through a GeoJSON file, automatically extract its bounding box, and download relevant geospatial data types, such as buildings, land use, and infrastructure, in GeoParquet format.
Features
- Automated Bounding Box Extraction: Parses a GeoJSON file and extracts the bounding box for easy area targeting.
- Flexible Data Downloading: Downloads various data types (e.g., buildings, infrastructure) in GeoParquet format for efficient storage and analysis.
- Easy Command-Line and Script Integration: The package provides a simple interface, allowing users to start the download process with a single function call.
- Data Organization: Downloads are organized into folders based on the AOI and data type, keeping data management straightforward.
Installation
To install the package, use pip:
pip install overture_maps_geoparquet_package
Usage
Here’s a quick guide on how to use the package:
-
Prepare a GeoJSON File
Create a GeoJSON file that defines your area of interest (AOI). Save it in your project directory (e.g.,
my_area.json). -
Run the Download Function
Import and call
download_overture_data, passing the path to your GeoJSON file:from overture_maps_geoparquet_package import download_overture_data # Download geospatial data for the specified area download_overture_data("my_area.json")
This will:
- Extract the bounding box from your GeoJSON file.
- Download geospatial data (e.g., buildings, land use, infrastructure) for the AOI.
- Save the data in organized folders within the current directory.
Example
from overture_maps_geoparquet_package import download_overture_data
# Specify the path to your GeoJSON file
geojson_path = "path/to/your_area.json"
# Start the download process
download_overture_data(geojson_path)
This code will automatically download the specified data types in GeoParquet format, organized by type.
Data Types Supported
The following data types are downloaded for each AOI:
- address
- building
- division
- infrastructure
- land use
- water
- And more...
Each type is saved in a folder structure organized by data category.
Project Structure
The project follows a standard layout:
overture_maps_geoparquet_package/
├── json/ # Stores GeoJSON files
├── overture_data/ # Downloaded data, organized by AOI and type
├── src/ # Source code for the package
├── tests/ # Unit tests
├── README.md # Project documentation
├── pyproject.toml # Project configuration
└── requirements.txt # Dependency management
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests for feature requests, bug fixes, or improvements.
- Fork the repository
- Create a new branch (
git checkout -b feature-branch) - Make your changes
- Submit a pull request
License
This project is licensed under the GPL-3.0 License. See the LICENSE file for more details.
Contact
For questions, please contact ediakatos@mapaction.org.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file overture_maps_geoparquet_package-0.1.1.tar.gz.
File metadata
- Download URL: overture_maps_geoparquet_package-0.1.1.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-48-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dff3f570633eb58c0c526cca5b45bd4fca4a869784c15ec25d475981d0777d4
|
|
| MD5 |
0ea0b204b8c76cb66ca4eea0c3770ff5
|
|
| BLAKE2b-256 |
70e1b8592baf5cb3016548c8396aad6a4287c95d66cc389a44d74b6aa2c25d36
|
File details
Details for the file overture_maps_geoparquet_package-0.1.1-py3-none-any.whl.
File metadata
- Download URL: overture_maps_geoparquet_package-0.1.1-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-48-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b608733360f7d116f47e43877ae53e953b6e4d1a87c324d65828f6e02027b613
|
|
| MD5 |
e81e32b83c26c0d83100b7829aefe049
|
|
| BLAKE2b-256 |
d4e0a46517dafdb663b5d99f827e2dc6777795c3c9d017fd2d2458867f6307aa
|