OBE (Open Buildings Extractor)
A Python package to extract building footprints from multiple open data sources including Google Open Buildings, Microsoft Building Footprints, OpenStreetMap, and Overture Maps.
Example
Run Example Notebook here:
Features
- Extract building footprints from multiple sources:
- Google Open Buildings
- Microsoft Building Footprints
- OpenStreetMap
- Overture Maps
- Support for multiple output formats:
- GeoJSON
- GeoPackage
- Shapefile
- GeoJSONSeq
- GeoParquet
- Command-line
- Python API
- Streamlit web interface
Installation
Using pip:
pip install obe
Using poetry
poetry add obe
Usage
Command line interface
obe --source <source> --input <input.geojson> --output <output.geojson>
Examples:
# Google Open Buildings
obe --source google --input area.geojson --output google_buildings.geojson
# Microsoft Building Footprints (requires location)
obe --source microsoft --input area.geojson --output ms_buildings.geojson --location Nepal
# OpenStreetMap
obe --source osm --input area.geojson --output osm_buildings.geojson
# Overture Maps
obe --source overture --input area.geojson --output overture_buildings.geojson
Python API
from obe.app import download_buildings
# Download buildings from any source
download_buildings(
source="google", # or "microsoft", "osm", "overture"
input_path="area.geojson",
output_path="buildings.geojson",
format="geojson", # or "geopackage", "shapefile", "geojsonseq", "geoparquet"
location=None # required for Microsoft ("Nepal", "India", etc.)
)
Example Input
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[83.96184435207743, 28.212767538129086],
[83.96184435207743, 28.20236573207498],
[83.97605449676462, 28.20236573207498],
[83.97605449676462, 28.212767538129086],
[83.96184435207743, 28.212767538129086]
]
]
}
}
]
}
Example Output
Authors
- Initiated by @kshitijrajsharma
Metadata
Release files for obe 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| obe-0.0.10.tar.gz | 6.4 kB | Without provenance | Details for obe-0.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| obe-0.0.10-py3-none-any.whl | Python 3 | none | any | Details for obe-0.0.10-py3-none-any.whl |
Total release size: 16.8 kB
Release files / obe-0.0.10.tar.gz
| Download URL | obe-0.0.10.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be090fab9a55bb27fca5fa9538a3a1bbd410274e178749c6b707c52744959496
|
|
BLAKE2b-256 checksum How to use checksums |
e2af7fb109d8afec2fb6130c739bbcdb9533528c84856a2510068a14813885b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.11.14 Linux/6.11.0-1018-azure
|
Release files / obe-0.0.10-py3-none-any.whl
| Download URL | obe-0.0.10-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d3c2f4c1948356bfdb2ac16e865a793c6b10ea043e6c54d38dc137e6a1cbc74
|
|
BLAKE2b-256 checksum How to use checksums |
66e2004314f9150fb3e909ac119460b112670c418e5829f348a737dc82adca23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.11.14 Linux/6.11.0-1018-azure
|
Security for obe 0.0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.