Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add geojson files #111

Merged
merged 1 commit into from
Aug 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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