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
Update Piecewise docs #135
Conversation
docs/system-requirements.md
Outdated
|
||
2. Clone your fork onto your local computer | ||
|
||
```$ git clone https://github.com/opentechinstitute/piecewise.git``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it'd be good for the code example here to reference a fork, rather than the home repo, e.g:
$ git clone https://github.com/<YOUR_FORK>/piecewise.git
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack.
Reviewed 1 of 8 files at r1. docs/config.md, line 22 at r1 (raw file):
I wasn't sure what documentation you were referring to here. I think we should help build a config file, or keep repeating that this should be in a note somewhere. docs/config.md, line 60 at r1 (raw file):
I expected this folder to be empty. What happens when I have multiple files in here? Is that OK? Or should there be a folder structure, e.g:
Let's make/add a note about options here re:organizing your local_customizations folder. docs/config.md, line 105 at r1 (raw file):
I would note here is where you change the geo-references since it's not noted earlier. I would actually note in the file, everything that needs to be change, and add some smart errors to the ansible playbook so that it's easier to know what's going on. I missed about half of the needed configs the first time. docs/deploy.md, line 7 at r1 (raw file):
I'm getting bigquery errors here, and it doesn't look like any of my file copied over as a result. Comments from Reviewable |
docs/config.md
Outdated
* In the lower left menu change the settings to: **CSV** | ||
* Copy the coordinates at the bottom of the page into your documentation. They should like this: ```-116.4559, 46.2657, -114.5947, 46.9346``` | ||
* The four coordinates are the southwest and northeast corners of the area you selected. From left to right, these values are: ```<southwest longitude>,<southwest latitude,<northeast longitude>,<northeast latitude>``` | ||
* In your text file, put the values into the format below: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which text file? piecewise > piecewise > requirements.txt? That is the only .txt file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@meagdoh Thanks for catching this. @georgiamoon reported this also. Will attempt to make it clearer.
docs/config.md
Outdated
|
||
``` | ||
```TO DO: add reference to international shapefile sources``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://gadm.org/country for Shapefiles by country.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
acknowledged. thanks.
docs/config.md
Outdated
4. Also in the ```"bins"``` section, change: ```"key" : "geoid"``` to: ```"key" : "<unique key field name>"```. The key name is the unique field in your geodata file which is used to join aggregated M-Lab data to geodata regions. | ||
|
||
**Filters Section Changes** | ||
Download and save your shapefiles to the folder ```local_customizations/geofiles/```. For example, listed below are the 2015 census block group shapefiles for Washington State, USA. The file ```wa_censusblocks.topojson``` is created in the next step, but included here because it will be saved in the same folder. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete Washington State, USA example files. OR add instruction to remove files.
docs/config.md
Outdated
|
||
##### Edit the main Piecewise configuration file | ||
Once you locate the shapefile(s) you need, it's good practice to open the shapefile in [QGIS](http://www.qgis.org/en/site/) or another GIS program to confirm that it meets the requirements to use within your Piecewise application. When you open the shapefile(s) in your GIS program, **make a note of the name of its unique key field.** You'll use that later in these instructions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few additional instructions for QGIS:
(0) Download QGIS
(1) Project > New
(2) Layer > Add Layer > Add Vector Layer with local .shp files
(3) Choose target granularity level. In the case of gadm.org shapefiles, 0 equals country (least specific) to 3 is most specific.
(4) Remove unused local files. At this point, you should have 6 files: .cpg, .csv, .dbf, .prj, .shp, .shx. For more info on Shapefiles: http://wiki.gis.com/wiki/index.php/Shapefile
docs/config.md
Outdated
|
||
This JSON file is arranged in sections with sub-elements. The relevant sections we will change begin with **"aggregations"** and **"filters"**. Each section below begins with a code block from the relevant section, followed by instructions on what to change, and ending with the edited section of code. In our examples, we are using the folder and file names for our Baltimore example. Your folder and file names will likely differ. | ||
* Must contain at least one field that serves as a unique key, for example "geoid" or "geoid10" in the case of census block groups |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which files contains the unique key? The .csv has 'OBJECT_ID', but unsure if that's the correct id.
@critzo I realized I never mentioned you in the comments above. Hopefully, this helps with future deployments. |
docs/config.md, line 22 at r1 (raw file): Previously, georgiamoon (georgia bullen) wrote…
Acknowledged. @meagdoh noted this as well. Upcoming commit will make this clearer. Comments from Reviewable |
docs/config.md, line 60 at r1 (raw file): Previously, meagdoh (Meag Doherty) wrote…
Adding instruction to remove files. Comments from Reviewable |
docs/config.md, line 53 at r1 (raw file): Previously, meagdoh (Meag Doherty) wrote…
That's going to be dependent on the files we obtain. In the future I'd like to automate the import of geodata and simplify this process more. For now, folks will need to determine the unique key. Comments from Reviewable |
docs/config.md, line 60 at r1 (raw file): Previously, georgiamoon (georgia bullen) wrote…
I'm adding some clearer notes at the beginning of this section. I like the folder structure you're proposing here, but currently the Ansible automation only supports one location. Comments from Reviewable |
docs/config.md, line 105 at r1 (raw file): Previously, georgiamoon (georgia bullen) wrote…
Adding a table of variables here, and notation in the config file for all variables to note whether they are required or default. Comments from Reviewable |
docs/deploy.md, line 7 at r1 (raw file): Previously, georgiamoon (georgia bullen) wrote…
I'll investigate. Maybe a package name change for the Python bigquery package in gcloud tools. Comments from Reviewable |
docs/config.md, line 49 at r1 (raw file): Previously, meagdoh (Meag Doherty) wrote…
Thanks. Comments from Reviewable |
@georgiamoon I've made updates based on the comments thus far. Please take a look when you have a chance? |
@georgiamoon When you have a moment could you take a look through the updates I had previously made to the Piecewise docs PR? Thanks. |
Review status: 0 of 8 files reviewed at latest revision, 10 unresolved discussions. docs/deploy.md, line 34 at r2 (raw file):
Is this the link for everyone or an example? Comments from Reviewable |
Reviewed 5 of 8 files at r1, 3 of 3 files at r2. Comments from Reviewable |
Review status: all files reviewed at latest revision, 10 unresolved discussions. Comments from Reviewable |
docs/deploy.md, line 34 at r2 (raw file): Previously, georgiamoon (georgia bullen) wrote…
It's an example. Comments from Reviewable |
This PR updates all public documentation to be consistent with the current state of Piecewise code.
A reviewer should be able to follow the documentation from the Getting Started section of the main project README, and end up with a working Piecewise server or VM.
This change is