Skip to content

Commit

Permalink
Adds Order to General Tasks Lessons
Browse files Browse the repository at this point in the history
  • Loading branch information
SrNetoChan committed Mar 13, 2017
1 parent 790d5ba commit 70ced5b
Show file tree
Hide file tree
Showing 15 changed files with 44 additions and 29 deletions.
7 changes: 2 additions & 5 deletions General_tasks/Add_annotations_to_the_map_canvas/lesson.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Add annotations to the map canvas
name: 14. Add annotations to the map canvas
group: General tasks
description: lesson.html
steps:
Expand All @@ -18,7 +18,4 @@ steps:
description: move_annotation_box.html

- name: Resize annotation
description: resize_annotation.html
nextLessons:
- name: Export raster layer (using Processing)
group: General tasks
description: resize_annotation.html
4 changes: 2 additions & 2 deletions General_tasks/Add_decorations_to_the_map_canvas/lesson.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Add decorations to the map canvas
name: 13. Add decorations to the map canvas
group: General tasks
description: lesson.html
steps:
Expand All @@ -20,5 +20,5 @@ steps:
- name: Set Grid options
description: grid_settings.html
nextLessons:
- name: Add annotations to the map canvas
- name: 14. Add annotations to the map canvas
group: General tasks
4 changes: 2 additions & 2 deletions General_tasks/Create_spatial_bookmarks/lesson.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create spatial bookmarks
name: 11. Create spatial bookmarks
group: General tasks
description: lesson.html
steps:
Expand Down Expand Up @@ -28,5 +28,5 @@ steps:
- name: Use bookmarks
description: use_bookmarks.html
nextLessons:
- name: Create visibility presets
- name: 12. Create visibility presets
group: General tasks
7 changes: 5 additions & 2 deletions General_tasks/Create_visibility_presets/lesson.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create visibility presets
name: 12. Create visibility presets
group: General tasks
description: lesson.html
steps:
Expand All @@ -12,4 +12,7 @@ steps:
description: createpreset2.html

- name: Use presets
description: usepresets.html
description: usepresets.html
nextLessons:
- name: 13. Add decorations to the map canvas
group: General tasks
4 changes: 2 additions & 2 deletions General_tasks/Define_vector_layer_CRS/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from qgis.utils import iface
from lessons import addLessonModule

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

lesson.addStep("Set 'Wake_BlockGroup_2010' layer as active layer", "activelayer.html",
function=lambda: setActiveLayer("Wake_BlockGroup_2010"),
Expand All @@ -18,4 +18,4 @@
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", "05. Reproject vector layer")
4 changes: 2 additions & 2 deletions General_tasks/Export_raster_layer/lesson.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Export raster layer
name: 02. Export raster layer
group: General tasks
description: lesson.html
steps:
Expand All @@ -9,5 +9,5 @@ steps:
description: saveas.html

nextLessons:
- name: Export raster layer (using Processing)
- name: 03. Export raster layer (using Processing)
group: General tasks
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>Next step</b> to finish the lesson.
Once you are done, click <b>Finishp</b> to end the lesson.
</p>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Export raster layer (using Processing)
name: 03. Export raster layer (using Processing)
group: General tasks
description: lesson.html
steps:
Expand All @@ -10,3 +10,7 @@ steps:

- name: Run the GDAL Translate algorithm
description: runtranslate.html

nextLessons:
- name: 04. Define vector layer CRS
group: General tasks
6 changes: 3 additions & 3 deletions General_tasks/Export_vector_layer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
from lessons import addLessonModule


lesson = Lesson("Export vector layer", "General tasks", "lesson.html")
lesson = Lesson("01. Export vector layer", "General tasks", "lesson.html")
lesson.addStep("Set 'points' layer as active layer", "activelayer.html",
function=lambda: setActiveLayer("points"),
endcheck=lambda: layerActive("points"),
steptype=Step.MANUALSTEP)
lesson.addMenuClickStep("Layer/Save As...")
lesson.addMenuClickStep("Layer/Save As...", name="Click on 'Layer > Save As...' menu item.")
lesson.addStep("Save layer to new format", "saveas.html", steptype=Step.MANUALSTEP)
lesson.addNextLesson("General tasks", "Reproject vector layer")
lesson.addNextLesson("General tasks", "02. Export raster layer")

5 changes: 2 additions & 3 deletions General_tasks/Group_layers/lesson.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Group layers
name: 08. Group layers
group: General tasks
description: lesson.html
steps:
Expand All @@ -16,7 +16,6 @@ steps:

- name: Remove layer from group
description: removelayer.html

nextLessons:
- name: Create visibility presets
- name: 09. Save map canvas as a georeferenced image
group: General tasks
4 changes: 2 additions & 2 deletions General_tasks/Reproject_vector_layer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from lessons import addLessonModule


lesson = Lesson("Reproject vector layer", "General tasks", "lesson.html")
lesson = Lesson("05. Reproject vector layer", "General tasks", "lesson.html")
lesson.addStep("Set 'points' layer as active layer", "activelayer.html",
function=lambda: setActiveLayer("points"),
endcheck=lambda: layerActive("points"),
Expand All @@ -18,5 +18,5 @@
lesson.addStep("Confirm layer CRS", "confirmcrs.html", steptype=Step.MANUALSTEP)
lesson.addMenuClickStep("Layer/Save As...")
lesson.addStep("Save a reprojected copy of the layer", "saveas.html", steptype=Step.MANUALSTEP)
lesson.addNextLesson("General tasks", "Reproject vector layer (using Processing)")
lesson.addNextLesson("General tasks", "06. Reproject vector layer (using Processing)")

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Reproject vector layer (using Processing)
name: 06. Reproject vector layer (using Processing)
group: General tasks
description: lesson.html
steps:
Expand All @@ -11,3 +11,6 @@ steps:
- name: Setup and run the Reproject layer algorithm
description: runreproject.html

nextLessons:
- name: 07. Transform X and Y CSV table into a point vector layer
group: General tasks
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Save map canvas as a georeferenced image
name: 09. Save map canvas as a georeferenced image
group: General tasks
description: lesson.html
steps:
Expand All @@ -16,3 +16,6 @@ steps:

- name: Load image
description: load_image.html
nextLessons:
- name: 10. Using preview modes in map canvas
group: General tasks
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
from lessons.utils import *
from qgis.utils import iface
from lessons import addLessonModule
from lessons.utils import copyLessonData


def copyTable():
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 = Lesson ("Transform X and Y CSV table into a point vector layer",
lesson = Lesson ("07. Transform X and Y CSV table into a point vector layer",
"General tasks", "lesson.html")

lesson.addStep("Copy data", "Copy data", copyTable)
Expand All @@ -19,3 +20,5 @@ def copyTable():
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)

lesson.addNextLesson("General tasks", "08. Group layers")
5 changes: 4 additions & 1 deletion General_tasks/Using_preview_modes_in_map_canvas/lesson.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Using preview modes in map canvas
name: 10. Using preview modes in map canvas
group: General tasks
description: lesson.html
steps:
Expand All @@ -21,3 +21,6 @@ steps:

- name: Conclusion
description: end.html
nextLessons:
- name: 11. Create spatial bookmarks
group: General tasks

0 comments on commit 70ced5b

Please sign in to comment.