Skip to content

Commit

Permalink
add geojson files
Browse files Browse the repository at this point in the history
also includes:
* conversion script
* qgis 3 project
* README
  • Loading branch information
bluejuniper authored and claytonpbarrows committed Aug 27, 2019
1 parent 02454a7 commit 4173433
Show file tree
Hide file tree
Showing 8 changed files with 34,320 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.pyc
.Rapp.history
.Rhistory
*.qgs~
26 changes: 26 additions & 0 deletions RTS_Data/FormattedData/GIS/README.md
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.

Loading

0 comments on commit 4173433

Please sign in to comment.