src.digitaltwin.retrieve_static_boundaries ========================================== .. py:module:: src.digitaltwin.retrieve_static_boundaries .. autoapi-nested-parse:: This script automates the retrieval and storage of geospatial data from various providers using the 'geoapis' library. It populates the 'geospatial_layers' table in the database and stores user log information for tracking and reference. Attributes ---------- .. autoapisummary:: src.digitaltwin.retrieve_static_boundaries.sample_polygon Functions --------- .. autoapisummary:: src.digitaltwin.retrieve_static_boundaries.main Module Contents --------------- .. py:function:: main(selected_polygon_gdf: geopandas.GeoDataFrame, log_level: src.digitaltwin.utils.LogLevel = LogLevel.DEBUG) -> None Connects to various data providers to fetch geospatial data for the selected polygon, i.e., the catchment area. Subsequently, it populates the 'geospatial_layers' table in the database and stores user log information for tracking and reference. :param selected_polygon_gdf: A GeoDataFrame representing the selected polygon, i.e., the catchment area. :type selected_polygon_gdf: gpd.GeoDataFrame :param log_level: The log level to set for the root logger. Defaults to LogLevel.DEBUG. The available logging levels and their corresponding numeric values are: - LogLevel.CRITICAL (50) - LogLevel.ERROR (40) - LogLevel.WARNING (30) - LogLevel.INFO (20) - LogLevel.DEBUG (10) - LogLevel.NOTSET (0) :type log_level: LogLevel = LogLevel.DEBUG :returns: This function does not return any value. :rtype: None .. py:data:: sample_polygon