-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also includes: * conversion script * qgis 3 project * README
- Loading branch information
1 parent
02454a7
commit 4173433
Showing
8 changed files
with
34,320 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.pyc | ||
.Rapp.history | ||
.Rhistory | ||
*.qgs~ |
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,26 @@ | ||
# Workflow for Creating a QGIS Project from Source Files | ||
This script converts the raw CSV files into a set of geojson files for visualization. | ||
A QGIS 3 project file, RTS-GMLC.qgs is also included. | ||
|
||
## Requirements | ||
This script requires Python 3.7 with the following packages | ||
1. json | ||
2. geojon | ||
3. pandas | ||
4. numpy | ||
|
||
## Running | ||
The script is run from this subdirectory with no arguments: | ||
`python csv2geojson.py` | ||
|
||
By default the script will add a random offset to each generator for ease of visualization. | ||
To keep generators at their bus locations, change `d = 0.1` to `d = 0.0` | ||
|
||
## Outputs | ||
This will produce a set of geojson files | ||
1. bus.csv: Point layer with bus data | ||
2. branch.csv: LineString layer with branch data | ||
3. gen.csv: Point layer with generator data | ||
4. gen_conn.csv: LineString layer with duplicate of generator data. | ||
Connects generator locations to their repspective buses. | ||
|
Oops, something went wrong.