edisgo.tools.geopandas_helper

Classes

GeoPandasGridContainer

Grids geo data for all components with information about their geolocation.

Functions

to_geopandas(→ GeoPandasGridContainer)

Translates all DataFrames with geolocations within a grid topology to GeoDataFrames.

Module Contents

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
grid_id
grid
buses_gdf
generators_gdf
loads_gdf
storage_units_gdf
transformers_gdf
lines_gdf
edisgo.tools.geopandas_helper.to_geopandas(grid_obj: edisgo.network.grids.Grid | edisgo.network.topology.Topology, srid: int) GeoPandasGridContainer[source]

Translates all DataFrames with geolocations within a grid topology to GeoDataFrames.

Parameters:
  • grid_obj (Grid or Topology) – Grid or Topology object to transform.

  • srid (int) – SRID (spatial reference ID) of x and y coordinates of buses. Usually given in Topology.grid_district[“srid”].

Returns:

Data container with the grids geo data for all components with information about their geolocation.

Return type:

GeoPandasGridContainer