Open Buildings Extractor
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
obe-0.0.9.tar.gz
(6.3 kB
view details)
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
obe-0.0.9-py3-none-any.whl
(10.3 kB
view details)
File details
Details for the file obe-0.0.9.tar.gz.
File metadata
- Download URL: obe-0.0.9.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.14 Linux/6.14.0-1012-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76d7a3cae3a255bd544ea6c4911636bbf82b5e9827026e7ecfba265b586817e3
|
|
| MD5 |
20fc1eb7a194fc400fbdacd2027b7225
|
|
| BLAKE2b-256 |
0da38f848a121d87fa53cd6393739878dd26ad9caf4e70d06b9c127289869fa8
|
File details
Details for the file obe-0.0.9-py3-none-any.whl.
File metadata
- Download URL: obe-0.0.9-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.14 Linux/6.14.0-1012-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ca3d8c5054672cbd5b5175c239d8798aff11f273cdbe441d53315057dabf208
|
|
| MD5 |
3a558bf0896f4dc5cdaf23b84c420d88
|
|
| BLAKE2b-256 |
809b549c5dc699ebc2c6d52287b6513af6ed89e231fc709601d9985657b24cd4
|