Transforming network geodata from any projection to wgs84 (lat/long)

In case network geodata are not in The World Geodetic System (WGS84), that is latitude/longitude format, but in some of the map-projections, it may be converted to lat/long by providing number of the projection. A sample of converting geodata from mv_oberrhein network can be found in the tutorial.

pandapower.plotting.geo.convert_crs(net: pandapowerNet, epsg_in=4326, epsg_out=31467)

This function works for pandapowerNet and pandapipesNet. Documentation will refer to names from pandapower. Converts bus and line geodata in net from epsg_in to epsg_out if GeoDataFrame data is present convert_geodata_to_gis should be used to update geometries after crs conversion Supported geojson geometries are Point and LineString. Although Conversion away from WGS84 is highly discouraged.

Parameters:
  • net (pandapowerNet|pandapipesNet) – The pandapower network

  • epsg_in (int, default 4326 (= WGS84)) – current epsg projection

  • epsg_out (int, default 31467 (= Gauss-Krüger Zone 3)) – epsg projection to be transformed to

Returns:

net - the given pandapower network (no copy!)