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
Module 6.1, updated images and text. #5580
Conversation
Updated the example snippets to reflect the GUI of QGIS 3.10. Updated the text accordingly and added some additional text to described other relevant items, such as looking at the Attribute Table after creating a new feature and describing how to access the Vertex Editor pane.
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.
Thanks! I have some suggestions. And I guess that @DelazJ would like you to use numbering instead of plain bullets when describing procedures in a stepwise way.
Co-authored-by: Håvard Tveite <havard.tveite@nmbu.no>
😃 and I'd have added that we should move away from :kbd: being used for things other than keyboard shortcuts. |
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.
@milechin Thanks for the update.
I only reviewed the diff as exposed by github. I have some suggestions and questions.
And moving to numbered list would be nice 👍
@@ -92,69 +95,71 @@ or aerial photography. | |||
For our example, you'll be using the digitizing approach. Sample raster datasets | |||
are provided, so you'll need to import them as necessary. | |||
|
|||
* Click on the :guilabel:`Add Raster Layer` button: |addRasterLayer| | |||
|
|||
* Click on Data Source Manager button |dataSourceManager| . |
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 we better use this type of instructions style
* Click on Data Source Manager button |dataSourceManager| . | |
* Click on |dataSourceManager| :sup:`Data Source Manager` button. |
sure that the correct layer is selected, otherwise you'll edit the wrong | ||
layer!) | ||
* Click on the :guilabel:`Toggle Editing` button: |edit| | ||
* Click on the :kbd:'school_property' layer in the :guilabel:`Layer list` to select it. |
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.
caution: there's use of ' instead of ` here. (but there's use of kbd anyways)
Four other relevant buttons are still inactive, but will become active when we | ||
start interacting with our new data: | ||
- |capturePolygon|: Add a new feature. | ||
- |vertexToolActiveLayer|: move only one part of a feature. |
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.
- |vertexToolActiveLayer|: move only one part of a feature. | |
- |vertexToolActiveLayer|: move vertice(s) of a feature. |
would be clearer imho
|
||
Another way to edited the feature is by manually entering the coordinates for each vertex. | ||
|
||
* Make sure the Vertex Editor tool |vertexToolActiveLayer| is still active. |
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.
* Make sure the Vertex Editor tool |vertexToolActiveLayer| is still active. | |
* Make sure the |vertexToolActiveLayer| :sup:`Vertex Tool` is still active. |
:align: center | ||
.. figure:: img/select_vertex.png | ||
:align: center | ||
.. figure:: img/moved_vertext.png |
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.
It does not hurt as long as they are inline but maybe worth fixing this typo in file name ?
.. figure:: img/moved_vertext.png | |
.. figure:: img/moved_vertex.png |
* Double *left-click* in the table on the x or y coordinate you want to edit and enter the | ||
updated value. | ||
|
||
.. figure:: img/edit_vertext_in_vertex_editor.png |
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.
Same file name "typo"
.. figure:: img/edit_vertext_in_vertex_editor.png | |
.. figure:: img/edit_vertex_in_vertex_editor.png |
|
||
To enable the remaining feature editing tools, one needs to select the feature. | ||
|
||
* Click on the Select Rectange button |selectRectangle| in the Attributes Toolbar. |
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.
* Click on the Select Rectange button |selectRectangle| in the Attributes Toolbar. | |
* Click on the |selectRectangle| :sup:`Select Features` button in the Attributes Toolbar. |
|
||
.. figure:: img/single_feature_select.png | ||
:align: center | ||
.. figure:: img/select_vertex.png |
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.
any reason of the margin left at the top in the image?
Ouch! looks like the version I was reviewing changed in the meantime... |
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 quick note. there are some indentation issues (I commented few) it'd be nice to address. Thanks.
you can see them either in previewing the changes in github or the html build (if you made it)
|
||
You'll be presented with the following dialog: | ||
.. figure:: img/create_vector_layer.png |
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.
rst is picky with indentation so you should align things as long as they belong to the same level. If you check the html build you'll notice a not nice vertical bar here. Should align the "Navigate".
.. figure:: img/create_vector_layer.png | |
.. figure:: img/create_vector_layer.png |
|
||
You'll be presented with the following dialog: | ||
.. figure:: img/create_vector_layer.png | ||
:align: center |
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.
:align: center | |
:align: center |
It's important to decide which kind of dataset you want at this stage. Each | ||
different vector layer type is "built differently" in the background, so once | ||
you've created the layer, you can't change its type. | ||
It's important to decide which kind of dataset you want at this stage. Each |
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.
Indentation. all these should align with... euh... probably moved as information in the next step?
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.
Some more suggestions and comments. Mostly indentation. Not all indentation issues have been commented, so everything should be checked for indentation mistakes.
@@ -18,58 +18,57 @@ existing dataset. Therefore, you'll need to define your own new dataset first. | |||
You'll need to open a :guilabel:`Create Layer` dialog that will allow you | |||
to define a new layer. | |||
|
|||
* Navigate to and click on the menu entry :menuselection:`Layer --> Create Layer --> New | |||
Shapefile Layer`. | |||
#. Navigate to and click on the menu entry :menuselection:`Layer --> Create Layer --> New Shapefile Layer`. You'll be presented with the following dialog. |
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.
#. Navigate to and click on the menu entry :menuselection:`Layer --> Create Layer --> New Shapefile Layer`. You'll be presented with the following dialog. | |
#. Navigate to and click on the menu entry | |
:menuselection:`Layer --> Create Layer --> New Shapefile Layer`. | |
You'll be presented with the following dialog. |
|
||
.. figure:: img/polygon_selected.png | ||
:align: center | ||
.. figure:: img/polygon_selected.png |
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.
.. figure:: img/polygon_selected.png | |
.. figure:: img/polygon_selected.png |
Align with the "F" in "For Geometry Type" above.
.. figure:: img/polygon_selected.png | ||
:align: center | ||
.. figure:: img/polygon_selected.png | ||
:align: center |
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.
:align: center | |
:align: center |
Better avoid tabs
|
||
This has no impact on the rest of the dialog, but it will cause the correct | ||
type of geometry to be used when the vector dataset is created. | ||
This has no impact on the rest of the dialog, but it will cause the correct |
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.
Identation has to be fixed for the complete "paragraph". Three spaces.
If you can't find this button, check that the :guilabel:`Digitizing` toolbar is | ||
enabled. There should be a check mark next to the :menuselection:`View --> | ||
Toolbars --> Digitizing` menu entry. | ||
If you can't find this button, check that the :guilabel:`Digitizing` toolbar is |
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.
Indentation...
I think I fixed the indentations, but let me know if it still needs work. I still need to go through your other suggestions when I have time. Best, Dennis |
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.
Just suggesting.
One at a time, digitize the path and the track on the :guilabel:`routes` layer. | ||
Try to follow the routes as accurately as possible, using points (left-click) at | ||
any corners or turns. | ||
#. Create a new line feature called ``routes.shp`` with attributes ``id`` and ``type``. (Use the approach above to guide you.) |
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.
#. Create a new line feature called ``routes.shp`` with attributes ``id`` and ``type``. (Use the approach above to guide you.) | |
#. Create a new ESRI Shapefile line dataset called ``routes.shp``, with attributes ``id`` and | |
``type`` (Use the approach above to guide you.) |
Nice! Thanks |
|
||
For the next exercise, we're going to be creating new features which describe | ||
areas. For such features, you'll need to create a polygon dataset. | ||
For the next exercise, we're going to be creating new features which describe |
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.
For the next exercise, we're going to be creating new features which describe | |
For the next exercise, we're going to create new features which describe |
I think I have incorporated all of the suggestions and corrections. Let me know if you have any other ones. |
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.
Looks fine to me. I have some suggestions I hope you will consider.
Co-authored-by: Håvard Tveite <havard.tveite@nmbu.no>
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.
Sorry I did not reply earlier @milechin. But you seem to get all I had in mind.
This is a pretty good update. Thanks.
@@ -92,165 +96,255 @@ or aerial photography. | |||
For our example, you'll be using the digitizing approach. Sample raster datasets | |||
are provided, so you'll need to import them as necessary. | |||
|
|||
* Click on the :guilabel:`Add Raster Layer` button: |addRasterLayer| | |||
#. Click on Data Source Manager button |dataSourceManager| :sup:`Data Source Manager` button. |
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.
#. Click on Data Source Manager button |dataSourceManager| :sup:`Data Source Manager` button. | |
#. Click on |dataSourceManager| :sup:`Data Source Manager` button. |
?
areas. For such features, you'll need to create a polygon dataset. | ||
#. Click :guilabel:`...` for the :guilabel:`File name` field. | ||
A save dialog will appear. | ||
#. Navigate to the ``exercise_data`` directory. |
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.
#. Navigate to the ``exercise_data`` directory. | |
#. Navigate to the :file:`exercise_data` directory. |
@@ -92,165 +96,255 @@ or aerial photography. | |||
For our example, you'll be using the digitizing approach. Sample raster datasets | |||
are provided, so you'll need to import them as necessary. | |||
|
|||
* Click on the :guilabel:`Add Raster Layer` button: |addRasterLayer| | |||
#. Click on Data Source Manager button |dataSourceManager| :sup:`Data Source Manager` button. | |||
#. Select :guilabel:`Raster` on the left side. |
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.
#. Select :guilabel:`Raster` on the left side. | |
#. Select |raster| :guilabel:`Raster` on the left side. |
You can ignore this one if you want.
If you don't, don't forget the substitution
.. |raster| image:: /static/common/mIconRaster.png
:width: 1.5em
To enter edit mode for the :guilabel:`school_property` layer: | ||
To enter edit mode for the ``school_property`` layer: | ||
|
||
#. Click on the ``school_property`` layer in the :guilabel:`Layer list` to select it. |
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.
#. Click on the ``school_property`` layer in the :guilabel:`Layer list` to select it. | |
#. Click on the ``school_property`` layer in the :guilabel:`Layers` panel to select it. |
If we want to conform to the GUI label
.. figure:: img/vertex_selected.png | ||
:align: center | ||
|
||
#. To update the a coordinate, double left click on a cell in the table |
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.
#. To update the a coordinate, double left click on a cell in the table | |
#. To update a coordinate, double left click on the cell in the table |
#. One at a time, digitize the path and the track on the ``routes`` layer. | ||
Try to follow the routes as accurately as possible, adding additional points along | ||
corners or turns. | ||
#. Set the ``type`` attribute value to ``path`` or ``track``.\ |
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.
#. Set the ``type`` attribute value to ``path`` or ``track``.\ | |
#. Set the ``type`` attribute value to ``path`` or ``track``. |
Or is it on purpose?
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.
Looks fine. Some lines on the longer side...
Co-authored-by: Håvard Tveite <havard.tveite@nmbu.no>
Thanks @milechin for the hard work and your patience |
(cherry picked from commit 441aa09)
Sure, thank you for the feedback as well. If time allows, I will see if I can work on section 6.2 next. I am interested in having some of these sections updated so that I can use them for QGIS tutorials I periodically will be teaching. |
Let's then hope that time allows 🙏 |
No problem. Thank you for the clarification on the best practice for updating. |
Updated the example snippets to reflect the GUI of QGIS 3.10. Updated the text accordingly and added some additional text to described other relevant items, such as looking at the Attribute Table after creating a new feature and describing how to access the Vertex Editor pane.
Goal:
Ticket(s): #