Skip to content

Commit 4173433

Browse files
bluejuniperclaytonpbarrows
authored andcommittedAug 27, 2019
add geojson files
also includes: * conversion script * qgis 3 project * README
1 parent 02454a7 commit 4173433

File tree

8 files changed

+34320
-0
lines changed

8 files changed

+34320
-0
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.pyc
22
.Rapp.history
33
.Rhistory
4+
*.qgs~

‎RTS_Data/FormattedData/GIS/README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Workflow for Creating a QGIS Project from Source Files
2+
This script converts the raw CSV files into a set of geojson files for visualization.
3+
A QGIS 3 project file, RTS-GMLC.qgs is also included.
4+
5+
## Requirements
6+
This script requires Python 3.7 with the following packages
7+
1. json
8+
2. geojon
9+
3. pandas
10+
4. numpy
11+
12+
## Running
13+
The script is run from this subdirectory with no arguments:
14+
`python csv2geojson.py`
15+
16+
By default the script will add a random offset to each generator for ease of visualization.
17+
To keep generators at their bus locations, change `d = 0.1` to `d = 0.0`
18+
19+
## Outputs
20+
This will produce a set of geojson files
21+
1. bus.csv: Point layer with bus data
22+
2. branch.csv: LineString layer with branch data
23+
3. gen.csv: Point layer with generator data
24+
4. gen_conn.csv: LineString layer with duplicate of generator data.
25+
Connects generator locations to their repspective buses.
26+

0 commit comments

Comments
 (0)