Skip to main content

Mind the Gap

Mind the Gap is an algorithm for detecting gaps in building footprints datasets, with a preference for finding the rectangular-shaped gaps caused by missing imagery tiles. It works best on country-sized datasets or smaller, or larger datasets divided into smaller chunks.

Getting started

A Dockerfile and requirements are included, and can help you set up a suitable container.

Alternatively, you can use poetry by running: pip install poetry and then poetry install from the root directory of the repository.

The core of the algorithm is found in mind_the_gap.py, and you can use mind_the_gap function to directly run the algorith. For an easier start, you can use the auto_tune module, which will free you from having to guess and check all the parameters. This will do a decent job of tuning all the paramters, but you may still need to tweak things. The default parameters in the Region.run method work generally well but may need a little tweaking. Region.run_parallel is advantageous for large datasets as it allows for parallel processing.

Inputs

Mind the Gap requires two inputs: building footprints (or just their centroids) and a boundary to the aoi. These are best handled using GeoPandas

Outputs

Gaps will be stored as a GeoDataFrame of the Region object once Region.run has ran.

Metadata

Release files for mind-t-gap 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mind-t-gap 1.0.2
File Size Uploaded
mind_t_gap-1.0.2.tar.gz 13.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mind-t-gap 1.0.2
File Interpreter ABI Platform
mind_t_gap-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 28.5 kB

Release files / mind_t_gap-1.0.2.tar.gz

Download URL mind_t_gap-1.0.2.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
79edf2cb19c46de05ddfe9bdf6fe688ade200e7e5c55cc9945c04f1d34df0da5
BLAKE2b-256 checksum
How to use checksums
047cfb9847fa57eae382564ad82ab6ad4fd6dad0f1371c85d1c3f421cca05b23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.10.16 Linux/5.15.0-151-generic

Release files / mind_t_gap-1.0.2-py3-none-any.whl

Download URL mind_t_gap-1.0.2-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
311d0ea87b9991bd7c16ac380a78bf664fe241df2c32a759d4b6bd28fb0c671d
BLAKE2b-256 checksum
How to use checksums
df80eb832371d524fda182153cdbf96bdc20ca87e13a39529e55b2bc5db2f3b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.10.16 Linux/5.15.0-151-generic

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page