Skip to content

Commit 5b829d3

Browse files
committed
rebullet/number
1 parent 1977ac8 commit 5b829d3

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

exercise1.md

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,32 @@ If you have not already downloaded the data for this workshop, do so now:
77

88
Be sure to extract the contents of the .zip file to your computer.
99

10-
1. Start a new project in QGIS (Project menu > New)
11-
2. Add the /exercise1/County_Erie2008_DEM_Index.shp by dragging it onto QGIS
10+
## 1. Add the data to QGIS
11+
12+
- Start a new project in QGIS (Project menu > New)
13+
- Add the /exercise1/County_Erie2008_DEM_Index.shp by dragging it onto QGIS
1214

1315
Let's verify that the data is in the correct location by adding a basemap, and set our map to use the CRS of the basemap.
1416

15-
3. Web > QuickMapServices > Google > Google Road
16-
4. Right-click the "OSM Standard" layer name > Set CRS > Set Project CRS from Layer
17+
- Web > QuickMapServices > Google > Google Road
18+
- Right-click the "OSM Standard" layer name > Set CRS > Set Project CRS from Layer
19+
20+
## 2. Add some style
1721

1822
To improve the visibility of both the index map and the basemap, let's change the style of the index map:
1923

20-
5. Open the Layer Styling panel ![processing toolbox button](https://kgjenkins.github.io/openindexmaps-workshop/image/layer-styling-button.png)
21-
6. Select the "County_Erie2008_DEM_Index" layer
22-
7. Click "Simple fill"
23-
8. Set the "Fill color" to purple with about 50% opacity
24+
- Open the Layer Styling panel ![processing toolbox button](https://kgjenkins.github.io/openindexmaps-workshop/image/layer-styling-button.png)
25+
- Select the "County_Erie2008_DEM_Index" layer
26+
- Click "Simple fill"
27+
- Set the "Fill color" to purple with about 50% opacity
2428
(another option would be to set the "Fill style" to "No Brush")
25-
9. Set the "Stroke color" to dark purple
29+
- Set the "Stroke color" to dark purple
30+
31+
## 3. Explore the data
2632

2733
Let's explore the values in the table, to get an idea of how we might want to convert the fields into OpenIndexMaps properties.
2834

29-
10. Right-click the "County_Erie2008_DEM_Index" layer > Open Attribute Table
35+
- Right-click the "County_Erie2008_DEM_Index" layer > Open Attribute Table
3036

3137
Notice the values found in the different fields:
3238

@@ -48,7 +54,9 @@ For the purposes of an index map, we can probably leave out any columns where ev
4854

4955
QGIS has a processing tool called "Refactor fields" that will let us rename, delete, and manipulate the values of these fields
5056

51-
11. In the processing toolbox, search for "refactor fields" and open the tool. The settings below will output a copy of the index map with just four fields: title, label, note, and downloadUrl. In this case, we are putting the size into a note so that it will display in the GBL interface. **Be sure to set all the types to string.** The lengthand precision values don't matter for strings.
57+
## 4. Refactor Fields
58+
59+
In the processing toolbox, search for "refactor fields" and open the tool. The settings below will output a copy of the index map with just four fields: title, label, note, and downloadUrl. In this case, we are putting the size into a note so that it will display in the GBL interface. **Be sure to set all the types to string.** The lengthand precision values don't matter for strings.
5260

5361
![refactor fields dialog](https://kgjenkins.github.io/openindexmaps-workshop/image/ex1-refactor-fields.png)
5462

@@ -58,13 +66,15 @@ The source expressions can be typed in directly, but if you click on the epsilon
5866

5967
Leave the default setting "Create temporary layer", which will let you see the output without cluttering up your drive with files.
6068

61-
12. Click "Run" and leave the "Refactor fields" dialog open in case you need to make any corrections and run it again.
69+
Click "Run" and leave the "Refactor fields" dialog open in case you need to make any corrections and run it again. (You can also get back to via the Processing menu > History)
6270

6371
You should have a new layer called "Refactored" on your map. Use the identify tool or look at the attribute table to make sure the results look right. If you need to make any corrections, remove the "Refactored" layer, then go back to the "Parameters" tab of the dialog, make your changes and run it again.
6472

73+
## 5. Save as GeoJSON
74+
6575
Once we're satisfied with the output, we are ready to save it as a GeoJSON file.
6676

67-
13. Right-click the "Refactored" layer > Make Permanent...
77+
- Right-click the "Refactored" layer > Make Permanent...
6878
- Set Format = GeoJSON
6979
- Always click the `...` button to specify where you want the file saved!
7080
- Under Layer Options, set RFC7946 = YES (this will force it into WGS84, and set decimal precision at 7 digits)

0 commit comments

Comments
 (0)