diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/01_introduction.md b/vector_layers_attributes/Editing_vector_layer_attributes/01_introduction.md new file mode 100644 index 0000000..b261e1f --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/01_introduction.md @@ -0,0 +1,6 @@ +In a vector layer, each feature is made of a geometry and a set of +alphanumerical attributes. In QGIS, there are different ways of editing +those attributes. In this lesson, we show how to edit attributes using +the attribute table and the feature form. + +Click **Next step** when you are ready to start. \ No newline at end of file diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/02_open_attribute_table.md b/vector_layers_attributes/Editing_vector_layer_attributes/02_open_attribute_table.md new file mode 100644 index 0000000..9db4e72 --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/02_open_attribute_table.md @@ -0,0 +1,21 @@ +The current project has a layer called *Buildings*. During the lesson, +we will edit some of its attributes. We will start by editing using the +attribute table, so, let's start by opening the layer's attribute table. + +- In the Layers Panel, right-click the *Buildings* layer and +choose **Open Attribute Table**. + + ![open_attribute_table.png](open_attribute_table.png) + +- Alternatively, having the *Buildings* layer active, +you can click the **Open Attribute Table** button in the **Attributes +toolbar**. + + ![open_attribute_table_button.png](open_attribute_table_button.png) + +An **Attribute Table** window for the *Buildings* will open +listing all of the layer's 536 features attributes in a table. + +![attribute_table_example.png](attribute_table_example.png) + +Click **Next step** once you are done. \ No newline at end of file diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/03_turn_layer_into_editing_mode.md b/vector_layers_attributes/Editing_vector_layer_attributes/03_turn_layer_into_editing_mode.md new file mode 100644 index 0000000..0be9aa0 --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/03_turn_layer_into_editing_mode.md @@ -0,0 +1,15 @@ +Before you can edit a layer, it must be in Edit mode. There are several +ways of changing a layer to edit mode, but, for our example, using the +button available in the Attribute table is more straightforward. + +- In the Attribute table toolbar, click the **Toggle edit mode**. + + ![toggle_editing_mode.png](toggle_editing_mode.png) + +Alternatively, you can use a similar button located in the *Digitizing +toolbar*, in QGIS's main window, or right-click the *Buildings* layer in +the *Layers Panel* and choose *Toggle Editing*. + +![toggle_editing_alternatives.png](toggle_editing_alternatives.png) + +Click **Next step** once you are done. \ No newline at end of file diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/04_editing_the_attributes_in_the_attribute_table.md b/vector_layers_attributes/Editing_vector_layer_attributes/04_editing_the_attributes_in_the_attribute_table.md new file mode 100644 index 0000000..a6eaf8d --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/04_editing_the_attributes_in_the_attribute_table.md @@ -0,0 +1,18 @@ +In the map canvas, notice the residential building in the corner. It +matches the first row in the attribute table, which we will edit. + +![building_before_editing](building_before_editing.png) + +- Back in the attribute table, in the first row, click the cell in the +*DESCRIPTIO* column to start editing it. + + ![edit_description](edit_description.png) + +- Type in `COMMERCIAL` and press **Enter**. + +If you go back to the map canvas, you can confirm that the building +representation has changed. + +![building_after_editing](building_after_editing.png) + +Click **Next step** once you are done. \ No newline at end of file diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/05_changing_the_identify_tool_settings.md b/vector_layers_attributes/Editing_vector_layer_attributes/05_changing_the_identify_tool_settings.md new file mode 100644 index 0000000..8c84e6e --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/05_changing_the_identify_tool_settings.md @@ -0,0 +1,20 @@ +A (sometimes) more convenient way of editing attributes is using the +feature form through the **Identify Features** tool, as it allows you to +choose which features to edit, directly in the map. + +First, we need to make sure the **Identify Features** tool settings are +correct. + +- If not visible yet, enable the **Identify Results** panel in **View > +Panels > Identify Results** + +- In the bottom, make sure the mode is set to `Current layer` and that +the **Auto open form** is enabled. + + ![identify_settings](identify_settings.png) + +Ith this settings, when you click on a single feature from the currently +active layer on the map canvas, the corresponding **Feature Attributes** +form opens. + +Click **Next step** once you are done. \ No newline at end of file diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/06_enable_identify_tool.md b/vector_layers_attributes/Editing_vector_layer_attributes/06_enable_identify_tool.md new file mode 100644 index 0000000..f80a24b --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/06_enable_identify_tool.md @@ -0,0 +1,22 @@ +Since we set the identify features tool mode to *Current Layer*, we need +to have an active layer before we can use it. Since we want to edit a +feature in the *buildings* layer, we need to make sure it's active. + +- In the **Layers Panel**, click the *Buildings* layer, so it becomes +the active layer. + + ![make_buildings_active.png](make_buildings_active.png) + +Now, with *Buildings* as the active layer, we can enable the +*Identify Features* tool. + +- In menus, go to **View > Identify Features**. + + ![enable_identify_tool_from_menus.png](enable_identify_tool_from_menus.png) + +- Alternatively, you can click the **Identify Feature** button in the +**Attributes toolbar**. + + ![enable_identify_tool_from_toobar.png](enable_identify_tool_from_toobar.png) + +Click **Next step** once you are done. \ No newline at end of file diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/07_editing_the_attributes_using_the_feature_form.md b/vector_layers_attributes/Editing_vector_layer_attributes/07_editing_the_attributes_using_the_feature_form.md new file mode 100644 index 0000000..76e2ff5 --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/07_editing_the_attributes_using_the_feature_form.md @@ -0,0 +1,15 @@ +- With *Building* as the active layer, and the identify tool active, click +on the building that we have edited earlier. + + ![identify_feature](identify_feature.png) + +The *Feature Attributes* dialog opens showing the feature attribute's values. + +![feature_form](feature_form.png) + +- Change the *UPDATE_DAT* attribute to a more recent date. Click +**OK** to apply the changes and close the feature form. + + ![edit_in_feature_form](edit_in_feature_form.png) + +Click **Next step** once you are done. \ No newline at end of file diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/08_saving_changes_to_the_attributes.md b/vector_layers_attributes/Editing_vector_layer_attributes/08_saving_changes_to_the_attributes.md new file mode 100644 index 0000000..f289ce5 --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/08_saving_changes_to_the_attributes.md @@ -0,0 +1,20 @@ +Until now all the changes we have done are saved only in memory. Once +you are satisfied with all the changes you have made (which may include +changes to the features attributes and/or geometries), you must save +them permanently in the data source. + +- In the **Digitizing toolbar**, click the **Save Layer Edits** button. + + ![save_layer_editis_button](save_layer_editis_button.png) + +- Alternatively, in the **Attribute table** toolbar, click the +**Save Edits** button. + + ![save_edits_button](save_edits_button.png) + +**Note:** Using the **Save** or **Save as** buttons in the Project +toolbar, **WILL NOT SAVE CHANGES TO THE DATA**. + +![warning_save_buttons](warning_save_buttons.png) + +Click **Next step** once you are done. \ No newline at end of file diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/09_turn_editing_mode_off.md b/vector_layers_attributes/Editing_vector_layer_attributes/09_turn_editing_mode_off.md new file mode 100644 index 0000000..15694b9 --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/09_turn_editing_mode_off.md @@ -0,0 +1,20 @@ +When you are done with editing the layer attributes (or geometries), you +should turn off editing for the layer. + +- In the Attribute table toolbar, click the **Toggle edit mode**. + + ![toggle_editing_mode_off.png](toggle_editing_mode_off.png) + +- Alternatively, you can use a similar button located in the *Digitizing +toolbar*, in QGIS's main window, or right-click the *Buildings* layer in the +*Layers Panel* and choose *Toggle Editing*. + + ![toggle_editing_alternatives_off.png](toggle_editing_alternatives_off.png) + +**Note:** If you try to turn off editing before saving your changes, a +warning message will prevent you from losing any work by mistake. This +can also be used to revert any unsaved changes by clicking **Discard**. + +![warning_save](warning_save.png) + +This step ends the lesson, click **Finish Lesson**. \ No newline at end of file diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/attribute_table_example.png b/vector_layers_attributes/Editing_vector_layer_attributes/attribute_table_example.png new file mode 100644 index 0000000..057e791 Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/attribute_table_example.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/building_after_editing.png b/vector_layers_attributes/Editing_vector_layer_attributes/building_after_editing.png new file mode 100644 index 0000000..3a63dfd Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/building_after_editing.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/building_before_editing.png b/vector_layers_attributes/Editing_vector_layer_attributes/building_before_editing.png new file mode 100644 index 0000000..0d14607 Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/building_before_editing.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown.dbf b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown.dbf new file mode 100644 index 0000000..8486a20 Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown.dbf differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown.prj b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown.prj new file mode 100644 index 0000000..faa0b91 --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown.prj @@ -0,0 +1 @@ +PROJCS["NAD83_North_Carolina_ftUS",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["standard_parallel_1",36.16666666666666],PARAMETER["standard_parallel_2",34.33333333333334],PARAMETER["latitude_of_origin",33.75],PARAMETER["central_meridian",-79],PARAMETER["false_easting",2000000],PARAMETER["false_northing",0],UNIT["Foot_US",0.30480060960121924]] \ No newline at end of file diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown.qpj b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown.qpj new file mode 100644 index 0000000..00377fb --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown.qpj @@ -0,0 +1 @@ +PROJCS["NAD83 / North Carolina (ftUS)",GEOGCS["NAD83",DATUM["North_American_Datum_1983",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6269"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4269"]],PROJECTION["Lambert_Conformal_Conic_2SP"],PARAMETER["standard_parallel_1",36.16666666666666],PARAMETER["standard_parallel_2",34.33333333333334],PARAMETER["latitude_of_origin",33.75],PARAMETER["central_meridian",-79],PARAMETER["false_easting",2000000],PARAMETER["false_northing",0],UNIT["US survey foot",0.3048006096012192,AUTHORITY["EPSG","9003"]],AXIS["X",EAST],AXIS["Y",NORTH],AUTHORITY["EPSG","2264"]] diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown.shp b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown.shp new file mode 100644 index 0000000..dbbd8a2 Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown.shp differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown.shx b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown.shx new file mode 100644 index 0000000..6f34928 Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown.shx differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.cpg b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.cpg new file mode 100644 index 0000000..3ad133c --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.cpg @@ -0,0 +1 @@ +UTF-8 \ No newline at end of file diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.dbf b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.dbf new file mode 100644 index 0000000..b08bd85 Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.dbf differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.prj b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.prj new file mode 100644 index 0000000..faa0b91 --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.prj @@ -0,0 +1 @@ +PROJCS["NAD83_North_Carolina_ftUS",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["standard_parallel_1",36.16666666666666],PARAMETER["standard_parallel_2",34.33333333333334],PARAMETER["latitude_of_origin",33.75],PARAMETER["central_meridian",-79],PARAMETER["false_easting",2000000],PARAMETER["false_northing",0],UNIT["Foot_US",0.30480060960121924]] \ No newline at end of file diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.qpj b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.qpj new file mode 100644 index 0000000..00377fb --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.qpj @@ -0,0 +1 @@ +PROJCS["NAD83 / North Carolina (ftUS)",GEOGCS["NAD83",DATUM["North_American_Datum_1983",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6269"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4269"]],PROJECTION["Lambert_Conformal_Conic_2SP"],PARAMETER["standard_parallel_1",36.16666666666666],PARAMETER["standard_parallel_2",34.33333333333334],PARAMETER["latitude_of_origin",33.75],PARAMETER["central_meridian",-79],PARAMETER["false_easting",2000000],PARAMETER["false_northing",0],UNIT["US survey foot",0.3048006096012192,AUTHORITY["EPSG","9003"]],AXIS["X",EAST],AXIS["Y",NORTH],AUTHORITY["EPSG","2264"]] diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.shp b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.shp new file mode 100644 index 0000000..62976c7 Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.shp differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.shx b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.shx new file mode 100644 index 0000000..58f7e2d Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_buildings.shx differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_streets.dbf b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_streets.dbf new file mode 100644 index 0000000..7c89805 Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_streets.dbf differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_streets.prj b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_streets.prj new file mode 100644 index 0000000..faa0b91 --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_streets.prj @@ -0,0 +1 @@ +PROJCS["NAD83_North_Carolina_ftUS",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["standard_parallel_1",36.16666666666666],PARAMETER["standard_parallel_2",34.33333333333334],PARAMETER["latitude_of_origin",33.75],PARAMETER["central_meridian",-79],PARAMETER["false_easting",2000000],PARAMETER["false_northing",0],UNIT["Foot_US",0.30480060960121924]] \ No newline at end of file diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_streets.qpj b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_streets.qpj new file mode 100644 index 0000000..00377fb --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_streets.qpj @@ -0,0 +1 @@ +PROJCS["NAD83 / North Carolina (ftUS)",GEOGCS["NAD83",DATUM["North_American_Datum_1983",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6269"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4269"]],PROJECTION["Lambert_Conformal_Conic_2SP"],PARAMETER["standard_parallel_1",36.16666666666666],PARAMETER["standard_parallel_2",34.33333333333334],PARAMETER["latitude_of_origin",33.75],PARAMETER["central_meridian",-79],PARAMETER["false_easting",2000000],PARAMETER["false_northing",0],UNIT["US survey foot",0.3048006096012192,AUTHORITY["EPSG","9003"]],AXIS["X",EAST],AXIS["Y",NORTH],AUTHORITY["EPSG","2264"]] diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_streets.shp b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_streets.shp new file mode 100644 index 0000000..516fbdc Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_streets.shp differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_streets.shx b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_streets.shx new file mode 100644 index 0000000..6f84960 Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/data/raleigh_downtown_streets.shx differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/edit_description.png b/vector_layers_attributes/Editing_vector_layer_attributes/edit_description.png new file mode 100644 index 0000000..97fb623 Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/edit_description.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/edit_in_feature_form.png b/vector_layers_attributes/Editing_vector_layer_attributes/edit_in_feature_form.png new file mode 100644 index 0000000..2a19481 Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/edit_in_feature_form.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/enable_identify_tool_from_menus.png b/vector_layers_attributes/Editing_vector_layer_attributes/enable_identify_tool_from_menus.png new file mode 100644 index 0000000..3401c70 Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/enable_identify_tool_from_menus.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/enable_identify_tool_from_toobar.png b/vector_layers_attributes/Editing_vector_layer_attributes/enable_identify_tool_from_toobar.png new file mode 100644 index 0000000..55345b9 Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/enable_identify_tool_from_toobar.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/feature_form.png b/vector_layers_attributes/Editing_vector_layer_attributes/feature_form.png new file mode 100644 index 0000000..280ec3e Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/feature_form.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/identify_feature.png b/vector_layers_attributes/Editing_vector_layer_attributes/identify_feature.png new file mode 100644 index 0000000..b7955cc Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/identify_feature.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/identify_settings.png b/vector_layers_attributes/Editing_vector_layer_attributes/identify_settings.png new file mode 100644 index 0000000..4ffc2aa Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/identify_settings.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/lesson.md b/vector_layers_attributes/Editing_vector_layer_attributes/lesson.md new file mode 100644 index 0000000..ac3ec6a --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/lesson.md @@ -0,0 +1,10 @@ +In a vector layer, each feature is made of a geometry and a set of +alphanumerical attributes. In QGIS, there are different ways of editing +those attributes. In this lesson, we show how to edit attributes using +the attribute table and the feature form. + +**Estimated time:** 15 minutes + +**Lesson by:** Alexandre Neto + +![../_shared_images/boundless.png](../_shared_images/boundless.png) diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/lesson.yaml b/vector_layers_attributes/Editing_vector_layer_attributes/lesson.yaml new file mode 100644 index 0000000..4b66f4d --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/lesson.yaml @@ -0,0 +1,27 @@ +lesson: + en: + description: lesson.md + group: Vector layer attributes + name: 06. Editing vector layer attributes + steps: + - description: 01_introduction.md + name: Introduction + - description: 02_open_attribute_table.md + name: Open attribute table + - description: 03_turn_layer_into_editing_mode.md + name: Turn layer into editing mode + - description: 04_editing_the_attributes_in_the_attribute_table.md + name: Editing the attributes in the attribute table + - description: 05_changing_the_identify_tool_settings.md + name: Changing the identify tool settings + - description: 06_enable_identify_tool.md + name: Enable identify tool + - description: 07_editing_the_attributes_using_the_feature_form.md + name: Editing the attributes using the feature form + - description: 08_saving_changes_to_the_attributes.md + name: Saving changes to the attributes + - description: 09_turn_editing_mode_off.md + name: Turn editing mode off + nextLessons: + - group: Vector layer attributes + name: 07. Using the field calculator \ No newline at end of file diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/make_buildings_active.png b/vector_layers_attributes/Editing_vector_layer_attributes/make_buildings_active.png new file mode 100644 index 0000000..86298dc Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/make_buildings_active.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/open_attribute_table.png b/vector_layers_attributes/Editing_vector_layer_attributes/open_attribute_table.png new file mode 100644 index 0000000..1e87f37 Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/open_attribute_table.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/open_attribute_table_button.png b/vector_layers_attributes/Editing_vector_layer_attributes/open_attribute_table_button.png new file mode 100644 index 0000000..9c4acec Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/open_attribute_table_button.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/project.qgs b/vector_layers_attributes/Editing_vector_layer_attributes/project.qgs new file mode 100644 index 0000000..7d44929 --- /dev/null +++ b/vector_layers_attributes/Editing_vector_layer_attributes/project.qgs @@ -0,0 +1,1773 @@ + + + Raleigh City Downtown + + + + + + + + + + + + + + + + + feet + + 2108562.26556794531643391 + 736462.06080703774932772 + 2108732.3512383233755827 + 736716.56773604603949934 + + 0 + 1 + + + +proj=lcc +lat_1=36.16666666666666 +lat_2=34.33333333333334 +lat_0=33.75 +lon_0=-79 +x_0=609601.2192024384 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs + 246 + 2264 + EPSG:2264 + NAD83 / North Carolina (ftUS) + lcc + GRS80 + false + + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + raleigh_downtown_streets20161228143254740 + raleigh_downtown20161228143332835 + raleigh_downtown_buildings20170320122317569 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2102982.62516688788309693 + 734293.14774728065822273 + 2109048.09400705294683576 + 744885.99499986390583217 + + raleigh_downtown20161228143332835 + ./data/raleigh_downtown.shp + + + + Raleigh downtown + + + +proj=lcc +lat_1=36.16666666666666 +lat_2=34.33333333333334 +lat_0=33.75 +lon_0=-79 +x_0=609601.2192024384 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs + 246 + 2264 + EPSG:2264 + NAD83 / North Carolina (ftUS) + lcc + GRS80 + false + + + ogr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + OBJECTID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /tmp/lessons/lesson1490011982.29 + + + + + + + + + + + + + + + + + + /tmp/lessons/lesson1490011982.29 + + 0 + /tmp/lessons/lesson1490011982.29 + + 0 + generatedlayout + + + + + + + + + + + + + + + + + + + + + 2103043.56205297447741032 + 734837.97474168543703854 + 2108933.70315981563180685 + 744784.59494026214815676 + + raleigh_downtown_buildings20170320122317569 + ./data/raleigh_downtown_buildings.shp + + + + Buildings + + + +proj=lcc +lat_1=36.16666666666666 +lat_2=34.33333333333334 +lat_0=33.75 +lon_0=-79 +x_0=609601.2192024384 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs + 246 + 2264 + EPSG:2264 + NAD83 / North Carolina (ftUS) + lcc + GRS80 + false + + + ogr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + DESCRIPTIO + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + + + + + + + + + + + + + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + + + + + + + + + + + + + + 2102892.53275732137262821 + 734194.91688316338695586 + 2109146.89715256588533521 + 744983.53917113528586924 + + raleigh_downtown_streets20161228143254740 + ./data/raleigh_downtown_streets.shp + + + + Streets + + + +proj=lcc +lat_1=36.16666666666666 +lat_2=34.33333333333334 +lat_0=33.75 +lon_0=-79 +x_0=609601.2192024384 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs + 246 + 2264 + EPSG:2264 + NAD83 / North Carolina (ftUS) + lcc + GRS80 + false + + + ogr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + CARTONAME + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /tmp/lessons/lesson1490011982.29 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /tmp/lessons/lesson1490011982.29 + + 0 + /tmp/lessons/lesson1490011982.29 + + 0 + generatedlayout + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + 2 + true + MU + + + false + + + + false + + GRS80 + + 8 + false + + + + + + + 0 + 255 + 255 + 255 + 255 + 255 + 255 + + + 1 + + raleigh_downtown20161228143332835 + raleigh_downtown_blocks_201020170320131722800 + raleigh_downtown_buildings20170320122317569 + raleigh_downtown_fire_incidents_201620170320135633439 + raleigh_downtown_landmarks20170320122528962 + raleigh_downtown_meters20170320163316104 + raleigh_downtown_parks20170320123421893 + raleigh_downtown_streets20161228143254740 + + + disabled + disabled + disabled + disabled + disabled + disabled + disabled + disabled + + current_layer + + + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + + + to_vertex_and_segment + to_vertex_and_segment + to_vertex_and_segment + to_vertex_and_segment + to_vertex_and_segment + to_vertex_and_segment + to_vertex_and_segment + to_vertex_and_segment + + off + 0 + + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + + + + + + + + + None + + + false + + + +proj=lcc +lat_1=36.16666666666666 +lat_2=34.33333333333334 +lat_0=33.75 +lon_0=-79 +x_0=609601.2192024384 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs + EPSG:2264 + 246 + 1 + + + + + + true + 255 + + + conditions unknown + 90 + + meters + m2 + + + + + diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/save_edits_button.png b/vector_layers_attributes/Editing_vector_layer_attributes/save_edits_button.png new file mode 100644 index 0000000..0fb200b Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/save_edits_button.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/save_layer_editis_button.png b/vector_layers_attributes/Editing_vector_layer_attributes/save_layer_editis_button.png new file mode 100644 index 0000000..2d3ca60 Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/save_layer_editis_button.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/toggle_editing_alternatives.png b/vector_layers_attributes/Editing_vector_layer_attributes/toggle_editing_alternatives.png new file mode 100644 index 0000000..9d1458c Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/toggle_editing_alternatives.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/toggle_editing_alternatives_off.png b/vector_layers_attributes/Editing_vector_layer_attributes/toggle_editing_alternatives_off.png new file mode 100644 index 0000000..9deaa3e Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/toggle_editing_alternatives_off.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/toggle_editing_mode.png b/vector_layers_attributes/Editing_vector_layer_attributes/toggle_editing_mode.png new file mode 100644 index 0000000..e6520ce Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/toggle_editing_mode.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/toggle_editing_mode_off.png b/vector_layers_attributes/Editing_vector_layer_attributes/toggle_editing_mode_off.png new file mode 100644 index 0000000..2ffc589 Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/toggle_editing_mode_off.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/warning_save.png b/vector_layers_attributes/Editing_vector_layer_attributes/warning_save.png new file mode 100644 index 0000000..899a91c Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/warning_save.png differ diff --git a/vector_layers_attributes/Editing_vector_layer_attributes/warning_save_buttons.png b/vector_layers_attributes/Editing_vector_layer_attributes/warning_save_buttons.png new file mode 100644 index 0000000..7174081 Binary files /dev/null and b/vector_layers_attributes/Editing_vector_layer_attributes/warning_save_buttons.png differ diff --git a/vector_layers_attributes/Select_features_using_an_expression/lesson.yaml b/vector_layers_attributes/Select_features_using_an_expression/lesson.yaml index 7fa9e72..069b30c 100644 --- a/vector_layers_attributes/Select_features_using_an_expression/lesson.yaml +++ b/vector_layers_attributes/Select_features_using_an_expression/lesson.yaml @@ -22,4 +22,4 @@ lesson: name: Confirm the selection nextLessons: - group: Vector layer attributes - name: 05. ... \ No newline at end of file + name: 06. Editing vector layer attributes \ No newline at end of file