-
Notifications
You must be signed in to change notification settings - Fork 491
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2212 from KS-HTK/feature/geojson
Feature/geojson
- Loading branch information
Showing
107 changed files
with
37,727 additions
and
34,460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
==================================== | ||
Transforming network geodata formats | ||
==================================== | ||
|
||
Geodata in pandapower can be stored in different formats. | ||
|
||
|
||
.. autofunction:: pandapower.plotting.geo.convert_gis_to_geodata | ||
|
||
.. autofunction:: pandapower.plotting.geo.convert_geodata_to_gis | ||
|
||
.. autofunction:: pandapower.plotting.geo.convert_gis_to_geojson | ||
|
||
.. autofunction:: pandapower.plotting.geo.convert_epsg_bus_geodata | ||
|
||
.. autofunction:: pandapower.plotting.geo.convert_crs | ||
|
||
All bus and lines of a network can be dumped to geojson, | ||
including all of their properties from `bus`,`res_bus`, `line` and `res_line` tables. | ||
|
||
.. autofunction:: pandapower.plotting.geo.dump_to_geojson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{"type": "FeatureCollection", "features": [{ | ||
"type": "Feature", | ||
"id": "line-0", | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [[1, 2], [3, 4]] | ||
}, | ||
"properties": { | ||
"pp_type": "line", | ||
"pp_index": 0, | ||
"name": "line1", | ||
"std_type": "None", | ||
"from_bus": 1.0, | ||
"to_bus": 7.0, | ||
"length_km": 1.0, | ||
"r_ohm_per_km": 0.2067, | ||
"x_ohm_per_km": 0.1897522, | ||
"c_nf_per_km": 720.0, | ||
"g_us_per_km": 0.0, | ||
"max_i_ka": 0.328, | ||
"df": 1.0, | ||
"parallel": 1.0, | ||
"type": "None", | ||
"in_service": 1.0, | ||
"ices": 0.389985} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"id": "bus-1", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [1.0, 2.0] | ||
}, | ||
"properties": { | ||
"pp_type": "bus", | ||
"pp_index": 1, | ||
"name": "bus2", | ||
"vn_kv": 0.4, | ||
"type": "b", | ||
"zone": "None", | ||
"in_service": 1.0 | ||
} | ||
}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import importlib.metadata | ||
|
||
__version__ = importlib.metadata.version("pandapower") | ||
__format_version__ = "2.15.0" | ||
__format_version__ = "3.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.