brails.scrapers.osm_power_network_scraper.osm_power_network_scraper module

This module defines the class scraping power network data from OSM.

OSM_PowerNetworkScraper(input_dict)

A class for retrieving & processing power network data from OpenStreetMap.

class brails.scrapers.osm_power_network_scraper.osm_power_network_scraper.OSM_PowerNetworkScraper(input_dict)

Bases: object

A class for retrieving & processing power network data from OpenStreetMap.

This class provides methods to query and extract power network elements, including power lines, substations, and transformers, from the OpenStreetMap API. It supports querying data for both bounding polygons and geographic names of regions.

length_unit

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

Type:

str

get_elements(region

RegionBoundary) -> AssetInventory: Retrieves the power network elements and associated attributes for a given region using the Overpass API.

get_elements(region)

Get the OSM geometries and atrributes for the power network in an area.

Parameters:

region (RegionBoundary) – The region of interest.

Returns:

An inventory of power network elements in the region.

Return type:

AssetInventory