edisgo.tools.geopandas_helper
¶
Module Contents¶
Classes¶
Grids geo data for all components with information about their geolocation. |
Functions¶
|
Translates all DataFrames with geolocations within a Grid class to GeoDataFrames. |
- class edisgo.tools.geopandas_helper.GeoPandasGridContainer(crs: str, grid_id: str | int, grid: edisgo.network.grids.Grid, buses_gdf: geopandas.GeoDataFrame, generators_gdf: geopandas.GeoDataFrame, loads_gdf: geopandas.GeoDataFrame, storage_units_gdf: geopandas.GeoDataFrame, transformers_gdf: geopandas.GeoDataFrame, lines_gdf: geopandas.GeoDataFrame)[source]¶
Grids geo data for all components with information about their geolocation.
- Parameters:
crs (str) – Coordinate Reference System of the geometry objects.
grid (
Grid
) – Matching grid objectbuses_gdf (geopandas.GeoDataFrame) – GeoDataframe with all buses in the Grid. See
buses_df
for more information.generators_gdf (geopandas.GeoDataFrame) – GeoDataframe with all generators in the Grid. See
generators_df
for more information.loads_gdf (geopandas.GeoDataFrame) – GeoDataframe with all loads in the Grid. See
loads_df
for more information.storage_units_gdf (geopandas.GeoDataFrame) – GeoDataframe with all storage units in the Grid. See
storage_units_df
for more information.transformers_gdf (geopandas.GeoDataFrame) – GeoDataframe with all transformers in the Grid. See
transformers_df
for more information.lines_gdf (geopandas.GeoDataFrame) – GeoDataframe with all lines in the Grid. See
loads_df
for more information.
- edisgo.tools.geopandas_helper.to_geopandas(grid_obj: edisgo.network.grids.Grid)[source]¶
Translates all DataFrames with geolocations within a Grid class to GeoDataFrames.
- Parameters:
grid_obj (
Grid
) – Grid object to transform.- Returns:
Data container with the grids geo data for all components with information about their geolocation.
- Return type: