Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Feb 2, 2017
2 parents 85268ab + 07de16b commit 4b48a2f
Show file tree
Hide file tree
Showing 234 changed files with 3,908 additions and 1,194 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
<img src="bookmark_name_raleigh.png">
</p>
<p>
Once you have finished, click <b>Move to next step</b>.
Once you have finished, click <b>Next step</b>.
</p>
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
<img src=bookmark_name_wake.png>
</p>
<p>
Once you have finished, click <b>Move to next step</b>.
Once you have finished, click <b>Next step</b>.
</p>
2 changes: 1 addition & 1 deletion General_tasks/Create_spatial_bookmarks/introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
QGIS allows the user to create spatial bookmarks to store locations on the map canvas. These locations are saved as map canvas' spatial extents in the QGIS project and can be used to quickly navigate on the map. In this lessons, we will cover bookmark creation.
</p>
<p>
Click <b>Move to next step</b> when you are ready to start.
Click <b>Next step</b> when you are ready to start.
</p>
2 changes: 1 addition & 1 deletion General_tasks/Create_spatial_bookmarks/use_bookmarks.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
<p>
Try repeating the above steps but for the <i>Wake county</i> bookmark. After doing it, the map canvas should now show the Wake County full territory.</p>
<p>
Once you are done, click <b>Move to next step</b> to finish the lesson.
Once you are done, click <b>Next step</b> to finish the lesson.
</p>
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
<img src="zoom_to_raleigh.png">
</p>
<p>
Once you have finished, click <b>Move to next step</b>.
Once you have finished, click <b>Next step</b>.
</p>
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
</p>
</ol>
<p>
Once you have finished, click <b>Move to next step</b>.
Once you have finished, click <b>Next step</b>.
</p
2 changes: 1 addition & 1 deletion General_tasks/Create_visibility_presets/createpreset1.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
<p>
You have created a new preset called <i>Services points</i>. In the next steps, we will create another one.</p>
<p>
Once you are ready, click <b>Move to next step</b>.
Once you are ready, click <b>Next step</b>.
</p>
2 changes: 1 addition & 1 deletion General_tasks/Create_visibility_presets/createpreset2.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
You have created a new preset called <i>Heatmap only</i>.
</p>
<p>
Once you have finished, click <b>Move to next step</b>.
Once you have finished, click <b>Next step</b>.
</p>
2 changes: 1 addition & 1 deletion General_tasks/Create_visibility_presets/usepresets.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
Try going back to the <i>Heatmap only</i> preset by your own.
</p>
<p>
Once you have finished, click <b>Move to next step</b> to end the lesson.
Once you have finished, click <b>Next step</b> to end the lesson.
</p>
21 changes: 5 additions & 16 deletions General_tasks/Define_vector_layer_CRS/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,18 @@
# This code is licensed under the GPL 2.0 license.
#
from lessons.lesson import Lesson, Step
from lessons.utils import *
from lessons.utils import setActiveLayer, layerActive
from qgis.utils import iface
from lessons import addLessonModule

def isLayerActive():
layer = iface.activeLayer()
return layer is not None and layer.name() == "Wake_BlockGroup_2010"

def setActiveLayer():
layer = layerFromName("Wake_BlockGroup_2010")
iface.setActiveLayer(layer)

lesson = Lesson("Define vector layer CRS", "General tasks", "lesson.html")

lesson.addStep("Set 'Wake_BlockGroup_2010' layer as active layer", "activelayer.html",
function = setActiveLayer, endcheck = isLayerActive, steptype = Step.MANUALSTEP)

function=lambda: setActiveLayer("Wake_BlockGroup_2010"),
endcheck=lambda: layerActive("Wake_BlockGroup_2010"),
steptype=Step.MANUALSTEP)
lesson.addMenuClickStep("Layer/Set CRS of Layer(s)")

lesson.addStep("Set the layer's correct CRS", "setcrs.html", steptype=Step.MANUALSTEP)

lesson.addMenuClickStep("Vector/Data Management Tools/Define Current Projection...", "gotodefineprojection.html")

lesson.addStep("Define new CRS to file", "defineprojection.html", steptype=Step.MANUALSTEP)

lesson.addNextLesson("General tasks", "Reproject vector layer")
lesson.addNextLesson("General tasks", "Reproject vector layer")
4 changes: 2 additions & 2 deletions General_tasks/Define_vector_layer_CRS/activelayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
One way of fixing it is to set the correct CRS within the project. Let's do it.
</p>
<p>
On the <b>Layers Panel</b>:
In the <b>Layers Panel</b>:
</p>
<ol>
<li>
Expand All @@ -33,7 +33,7 @@
<img src='activelayer.png'/>
</p>
<p>
Once you have finished, click <b>Move to next step</b>.
Once you have finished, click <b>Next step</b>.
</p>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
The CRS is saved on the original data, and the layer will no longer load into QGIS with a wrong CRS.
</p>
<p>
Once you have finished, click <b>Move to next step</b>, to end the lesson.
Once you have finished, click <b>Next step</b>, to end the lesson.
</p>
</body>
</html>
2 changes: 1 addition & 1 deletion General_tasks/Define_vector_layer_CRS/setcrs.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
The new CRS is set, and the layer should now fit the Wake County's Boundary.
</p>
<p>
Once you have finished, click <b>Move to next step</b>.
Once you have finished, click <b>Next step</b>.
</p>
</body>
</html>
2 changes: 1 addition & 1 deletion General_tasks/Export_raster_layer/opentranslate.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<li>Click on the <b>Raster > Conversion > Translate (Convert Format)...</b> menu entry.</li>
</ol>
<p>
Once you have finished, click <b>Move to next step</b>.
Once you have finished, click <b>Next step</b>.
</p>
</body>
</html>
2 changes: 1 addition & 1 deletion General_tasks/Export_raster_layer/saveas.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
The new file will be saved in the new format, and loaded into the map canvas.
</p>
<p>
Once you are done, click <b>Move to next step</b> to finish the lesson.
Once you are done, click <b>Next step</b> to finish the lesson.
</p>
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
</ol>

<p>
Once you have finished, click <b>Move to next step</b>.
Once you have finished, click <b>Next step</b>.
</p>
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@
The new file will be saved in the new format and loaded into the map canvas.
</p>
<p>
Once you are done, click <b>Move to next step</b> to finish the lesson.
Once you are done, click <b>Next step</b> to finish the lesson.
</p>
13 changes: 4 additions & 9 deletions General_tasks/Export_vector_layer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,16 @@
# This code is licensed under the GPL 2.0 license.
#
from lessons.lesson import Lesson, Step
from lessons.utils import *
from lessons.utils import setActiveLayer, layerActive
from qgis.utils import iface
from lessons import addLessonModule

def isLayerActive():
layer = iface.activeLayer()
return layer is not None and layer.name() == "points"

def setActiveLayer():
layer = layerFromName("points")
iface.setActiveLayer(layer)

lesson = Lesson("Export vector layer", "General tasks", "lesson.html")
lesson.addStep("Set 'points' layer as active layer", "activelayer.html",
function = setActiveLayer, endcheck=isLayerActive, steptype=Step.MANUALSTEP)
function=lambda: setActiveLayer("points"),
endcheck=lambda: layerActive("points"),
steptype=Step.MANUALSTEP)
lesson.addMenuClickStep("Layer/Save As...")
lesson.addStep("Save layer to new format", "saveas.html", steptype=Step.MANUALSTEP)
lesson.addNextLesson("General tasks", "Reproject vector layer")
Expand Down
2 changes: 1 addition & 1 deletion General_tasks/Export_vector_layer/activelayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<img src='activelayer.png'/>
</p>
<p>
Once you have finished, click <b>Move to next step</b>.
Once you have finished, click <b>Next step</b>.
</p>
</body>
</html>
2 changes: 1 addition & 1 deletion General_tasks/Export_vector_layer/saveas.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</ol>
<p>The new layer will load in the map canvas.</p>
<p>
Once you are done, click <b>Move to next step</b> to finish the lesson.
Once you are done, click <b>Next step</b> to finish the lesson.
</p>
</body>
</html>
2 changes: 1 addition & 1 deletion General_tasks/Group_layers/addlayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
<img src="heatmapingroup.png">
</p>
<p>
Once you have finished, click <b>Move to next step</b>.
Once you have finished, click <b>Next step</b>.
</p>
2 changes: 1 addition & 1 deletion General_tasks/Group_layers/groupselected.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
<img src="groupedlayers.png">
</p>
<p>
Once you have finished, click <b>Move to next step</b>.
Once you have finished, click <b>Next step</b>.
</p>
2 changes: 1 addition & 1 deletion General_tasks/Group_layers/removelayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
<img src="schoolsoutgroup.png">
</p>
<p>
Once you have finished, click <b>Move to next step</b> to end the lesson.
Once you have finished, click <b>Next step</b> to end the lesson.
</p>
2 changes: 1 addition & 1 deletion General_tasks/Group_layers/renamegroup.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
<img src="groupnewname.png">
</p>
<p>
Once you have finished, click <b>Move to next step</b>.
Once you have finished, click <b>Next step</b>.
</p>
2 changes: 1 addition & 1 deletion General_tasks/Group_layers/selectlayers.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
<img src="activelayers.png">
</p>
<p>
Once you have finished, click <b>Move to next step</b>.
Once you have finished, click <b>Next step</b>.
</p>
13 changes: 4 additions & 9 deletions General_tasks/Reproject_vector_layer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,16 @@
# This code is licensed under the GPL 2.0 license.
#
from lessons.lesson import Lesson, Step
from lessons.utils import *
from lessons.utils import setActiveLayer, layerActive
from qgis.utils import iface
from lessons import addLessonModule

def isLayerActive():
layer = iface.activeLayer()
return layer is not None and layer.name() == "points"

def setActiveLayer():
layer = layerFromName("points")
iface.setActiveLayer(layer)

lesson = Lesson("Reproject vector layer", "General tasks", "lesson.html")
lesson.addStep("Set 'points' layer as active layer", "activelayer.html",
function = setActiveLayer, endcheck=isLayerActive, steptype=Step.MANUALSTEP)
function=lambda: setActiveLayer("points"),
endcheck=lambda: layerActive("points"),
steptype=Step.MANUALSTEP)
lesson.addMenuClickStep("Layer/Properties...", "openproperties.html")
lesson.addStep("Confirm layer CRS", "confirmcrs.html", steptype=Step.MANUALSTEP)
lesson.addMenuClickStep("Layer/Save As...")
Expand Down
2 changes: 1 addition & 1 deletion General_tasks/Reproject_vector_layer/activelayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<img src='activelayer.png'/>
</p>
<p>
Once you have finished, click <b>Move to next step</b>.
Once you have finished, click <b>Next step</b>.
</p>
</body>
</html>
2 changes: 1 addition & 1 deletion General_tasks/Reproject_vector_layer/confirmcrs.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
</li>
</ol>
<p>
Once you are done, click <b>Move to next step</b> to continue the lesson.
Once you are done, click <b>Next step</b> to continue the lesson.
</p>
2 changes: 1 addition & 1 deletion General_tasks/Reproject_vector_layer/saveas.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</ol>
<p>The new reprojected layer will load in the map canvas.</p>
<p>
Once you are done, click <b>Move to next step</b> to finish the lesson.
Once you are done, click <b>Next step</b> to finish the lesson.
</p>

</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
</ol>

<p>
Once you have finished, click <b>Move to next step</b>.
Once you have finished, click <b>Next step</b>.
</p>
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,18 @@
from qgis.utils import iface
from lessons import addLessonModule

lesson = Lesson ("Transform X and Y CSV table into a point vector layer",
"General tasks", "lesson.html")

def copyTable():
filepath = os.path.join(os.path.dirname(os.path.dirname(__file__)), "transformcsv/data", "songs.csv")
copyLessonData(filepath, os.path.basename(os.path.dirname(__file__)))
filepath = os.path.join(os.path.dirname(os.path.dirname(__file__)), "Transform_X_and_Y_CSV_table_into_a_point_vector_layer/data", "songs.csv")
copyLessonData(filepath, os.path.basename(os.path.dirname(__file__)))

lesson.addStep("Copy data", "Copy data", copyTable)

lesson.addMenuClickStep('Layer/Add Layer/Add Delimited Text Layer...')
lesson = Lesson ("Transform X and Y CSV table into a point vector layer",
"General tasks", "lesson.html")

lesson.addStep("Copy data", "Copy data", copyTable)
lesson.addMenuClickStep('Layer/Add Layer/Add Delimited Text Layer...')
lesson.addStep('Configure importing settings', 'delimited_test_settings.html', steptype=Step.MANUALSTEP)

lesson.addStep('Set layer as active layer', 'set_active_layer.html', steptype=Step.MANUALSTEP)

lesson.addMenuClickStep('Layer/Save As...')

lesson.addStep('Save the file as GeoPackage', 'save_as_geopackage.html', steptype=Step.MANUALSTEP)
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
<img src="protanope.png">
</p>
<p>
Click <b>Move to next step</b> to try the other two preview modes.
Click <b>Next step</b> to try the other two preview modes.
</p>
2 changes: 1 addition & 1 deletion General_tasks/Using_preview_modes_in_map_canvas/end.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
As we have seen, some color choices can lead to accessibility problems. Therefore, in those cases, we should change our color schemes or add extra symbols to make the map useful for everyone. I advise you to consult <b>http://colorbrewer2.org</b> to choose more adequated color schemes for your maps and use preview modes to make sure they work.
</p>
<p>
Click <b>Move to next step</b> to finish the lesson.
Click <b>Next step</b> to finish the lesson.
</p>
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
<img src="grayscale.png">
</p>
<p>
Click <b>Move to next step</b> once you are ready to continue.
Click <b>Next step</b> once you are ready to continue.
</p>
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
This lesson will show you how to use map canvas preview modes to anticipate how your map will look in limited color spaces. Grayscale formats and color blindness are examples of that. This feature is useful to avoid choosing colors that will make the map unreadable to some or all its users.
</p>
<p>
Click <b>Move to next step</b> whenever you are ready to start.
Click <b>Next step</b> whenever you are ready to start.
</p>
2 changes: 1 addition & 1 deletion General_tasks/lesson.manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<lesson>
<description>Lessons about general/common tasks in QGIS</description>
<lessons_list>Add annotations to the map canvas,Add decorations to the map canvas,Create spatial bookmarks,Create visibility presets,Define vector layer CRS,Export raster layer,Export raster layer using Processing,Export vector layer,Group layers,reprojectvector,Reproject vector layer,Reproject vector layer using Processing,Save map canvas as a georeferenced image,transformcsv,Transform X and Y CSV table into a point vector layer,Using preview modes in map canvas</lessons_list>
<lessons_list>Define vector layer CRS,Save map canvas as a georeferenced image,Create spatial bookmarks,Export raster layer,Add decorations to the map canvas,Add annotations to the map canvas,Transform X and Y CSV table into a point vector layer,Export vector layer,Reproject vector layer,Reproject vector layer using Processing,Create visibility presets,Using preview modes in map canvas,Export raster layer using Processing,Group layers</lessons_list>
<url>http://lessons.connect.boundlessgeo.com/general.zip</url>
</lesson>
5 changes: 5 additions & 0 deletions layer_styling/Create_proportional_symbols/00_lesson.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<h1>Categorized Symbols</h1>
<p>A good way of representing quantitative data values is using symbols which size is proportional to a variable's value. QGIS allows the user to style a layer with proportional symbols in a convenient — but still customizable — way. This lesson will show how to create proportional symbols using the QGIS's size assistant.</p>
<p><b>Estimated time:</b> 5 minutes</p>
<p><b>Lesson by:</b> Alexandre Neto</p>
<p><img src='../_shared_images/boundless.png'/></p>
Loading

0 comments on commit 4b48a2f

Please sign in to comment.