brails.scrapers.osm_footprint_scraper.osm_footprint_scraper module

This module defines the class scraping building data from OSM.

OSM_FootprintScraper(input_dict)

A class for retrieving and processing building footprint data from OSM.

class brails.scrapers.osm_footprint_scraper.osm_footprint_scraper.OSM_FootprintScraper(input_dict: dict)

Bases: FootprintScraper

A class for retrieving and processing building footprint data from OSM.

This class provides methods for querying and extracting building footprint data, including attributes such as building height, era of construction, and number of stories, using the OpenStreetMap API. It handles both rectangular bounding boxes and specific region boundaries defined by OSM data.

Attributes:
length_unit (str):

The unit of length for building height measurements. Default is ‘ft’.

Methods:
get_footprints(region: RegionBoundary) -> AssetInventory:

Retrieves the building footprints and associated attributes for a given region using the OpenStreetMap API.

get_footprints(region: RegionBoundary) AssetInventory

Get the OSM footprints and atrributes for buildings in an area.

Args:
region (RegionBoundary):

The region of interest.

Returns:
AssetInventory:

A building inventory for buildings in the region.