Skip to main content

A tool to extract the microsoft building footprints with user defined boundary.

Project description

Microsoft Building Footprint Extracter based on user defined boundary

This tool allows users to retrieve microsoft global building footprint data based on a specified boundary (such as a shapefile or GeoJSON). The footprints are then saved as GeoJSON files to a specified output directory.

Features

  • Supports multiple boundary input file formats: .shp, .gpkg, .kml, .geojson.
  • Allows users to specify a boundary and retrieve building footprint data for a specific country or region or small study area.
  • Compatible with Google Earth Engine (GEE)/ required GEE authentications.

Usage

It needs a GEE account to access the data.

To install the required dependencies, run the following:

pip install msfootprint

Once installed, import it in notebook or any python compiler.

import msfootprint as msf

Initialize all the variables

#Import all necessary things
import pathlib as Path
boundary_shp = Path('./shapefile_directory')
out_dir = Path('./output_directory')

#Import the name of country where the boundary is located
country = 'Nepal'

#In some cases, like 'US', it has seperate state based feature collection so to get the information about whether you can directly pass country boundary or need to be more specific, try this:
msf.FindTableorFolder('US')

#It is not direct table, it contains several statewise table so it will reflect sub collections name/boundaries.

#So if your boundary falls within specific table inside teh country (incase it  contains multiple tables) defined as
country = "US/Alabama"

Now, run the main script

msf.getBuildingFootprint(country, boundary_shp, out_dir)

It will save the building footprint as geojson format in designated location.

For Any Information

Feel free to reach out to me: Supath Dhital
Email: sdhital@crimson.ua.edu

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

msfootprint-0.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

msfootprint-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file msfootprint-0.1.0.tar.gz.

File metadata

  • Download URL: msfootprint-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.11.7 Darwin/24.2.0

File hashes

Hashes for msfootprint-0.1.0.tar.gz
Algorithm Hash digest
SHA256 164d37d4de0a703165820137dc07b1f605e6c521e5e87d6260c97a4b9a833e9b
MD5 c34d97adc1e959ca85409284f1a27bf0
BLAKE2b-256 74543d19d3c512efe98e82ea0843440c4d9f7b440fcf060bcb67d20e61976fec

See more details on using hashes here.

File details

Details for the file msfootprint-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: msfootprint-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.11.7 Darwin/24.2.0

File hashes

Hashes for msfootprint-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9463e96e647a2e949428d608dffcf9d6cec2514618ecb1da9653379bd59b6a6
MD5 cb78fcafe6084b5d86ef0e4932035674
BLAKE2b-256 395215fae3ed7aad000c8611dab05dfb21b30b6d10ea231a1cd3f04aab8af155

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page