brails.scrapers.nti_scraper.nti_scraper module

This module defines a class for retrieving tunnel data from NTI.

NTIScraper([input_dict])

A class for scraping and processing National Tunnel Inventory (NTI) data.

class brails.scrapers.nti_scraper.nti_scraper.NTIScraper(input_dict=None)

Bases: object

A class for scraping and processing National Tunnel Inventory (NTI) data.

The class handles tasks such as fetching and processing tunnel data, meshing the region into smaller cells for efficient data retrieval, and organizing the results into an AssetInventory.

length_unit

The unit of length (default is ‘ft’).

Type:

str

inventory

An inventory object that holds the assets for this instance.

Type:

AssetInventory

get_assets(region

RegionBoundary) -> AssetInventory: Retrieves tunnel inventory data within a given region boundary, processes the data, and returns the inventory of assets.

get_assets(region)

Retrieve tunnel inventory within a given region.

This method processes the region boundary, splits it into smaller cells, fetches the necessary tunnel data for each cell, and returns the processed tunnel asset inventory.

Parameters:

region (RegionBoundary) – A RegionBoundary object representing the geographic region for which to retrieve tunnel inventory data.

Returns:

An AssetInventory object containing the tunnel assets within the specified region.

Return type:

AssetInventory

Raises:

TypeError – If the region argument is not an instance of the RegionBoundary class. The error message will indicate that the ‘region’ argument must be an instance of the RegionBoundary class.