-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path08_viewing_data.Rmd
18 lines (14 loc) · 1.29 KB
/
08_viewing_data.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Viewing a Query to QGIS
You don't have to save a query as a table to view it in QGIS. Sometimes you just want to see the results, but don't need to keep a table that you might not need later. Let's see the spatial join we just did in the QGIS map canvas:
1. After you run the code to do the spatial join above, you will see a check box below the table that says *Load as new layer*. Click in the box to check it off. New options will appear.
1. Check the box next to *Column with unique values* and select *id* from the list.
1. Check the box next to *Geometry column* and select *geom* from the list.
1. Fill in the *Layer name (prefix)* with "Flowlines in Watersheds".
1. Click the *Load* button. It may take it a few minutes to load because the *flowlines* layer is large.
Now you have access to the *Layer Properties* and all the other tools you might use with any other vector layer in QGIS. For fun, let's style this layer:
1. Open up the *Layer Properties* (right click on the layer in the *Layers Panel* and select *Properties*).
1. Click on the *Symbology* tab.
1. Instead of *Single Symbol*, let's pick *Categorized* from the top drop-down menu.
1. For the *Column*, pick *Watershed_Name*
1. Click the *Classify* button near the bottom.
1. Finally, click *OK* to close the dialog and apply our changes.