Collecting training data

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
(Create a new vector layer)
(Create a new vector layer)
 
Line 15: Line 15:
 
#** Select {{button|text=Whole number (integer)}} as Type.
 
#** Select {{button|text=Whole number (integer)}} as Type.
 
#** Confirm with {{button|text=Add to Fields List}}. {{button|text=OK}}.
 
#** Confirm with {{button|text=Add to Fields List}}. {{button|text=OK}}.
[[File:qgis_add_new_vector_layer.png|400px]]
+
[[File:qgis_add_new_poly_vector_layer.png|400px]]
  
 
== Configure vector digitizing ==
 
== Configure vector digitizing ==

Latest revision as of 06:27, 6 June 2022

Contents

[edit] Non-statistical based selection

[edit] Prepare sources for reference data collection

  1. Load a LUC classification map of the Urban European Atlas for Göttingen in vector format. (Loading vector data)
  2. Load Digital aerial Ortho Photos (DOP) published as "Google Satellite". (Load a WMS-Layer).
  3. Load a multiband (B2,B3,B4,B5,B6,B7,B8,B8A,B11,B12) Sentinel-2 satellite image and display a false color composite (RGB = B8,B11,B4 =7,9,3). (Changing Raster Layer Style)
  4. Right click on the satellite image file name in Layers window. Layer CRS --> Set Project CRS from Layer.

[edit] Create a new vector layer

  1. Select Layer --> Create Layer --> New Geopackage Layer.
  2. Define path and file name.
    • As Geometry type, select Polygon.
    • Click the Specify CRS button and select the Project CRS: EPSG:32632 - WGS84 / UTM32N.
    • Adding an additional column in the attibute table:
      • For the attribute's name type C_ID into the Name field of the New field section.
      • Select Whole number (integer) as Type.
      • Confirm with Add to Fields List. OK.

Qgis add new poly vector layer.png

[edit] Configure vector digitizing

  1. Select Project --> Snapping options.
  2. Activate Snapping clicking on Qgis snapping button.png.
  3. Change the dropdown list All Layers to Advanced Configuration
  4. Activate the checkbox of a vector layer for which you wish to configure snapping.
  5. Click in the Type column of the vector layer. In the dropdown list activate Vertex and Segment.
  6. Choose Units meters.
  7. Select the snapping Tolerance 2(meters).
  8. Activate the checkbox Avoid overlap.
  9. Activate Topological Editing and Snapping on Intersection

Qgis snap opt.png

[edit] Start digitizing

  1. Mark the new vector file in the Layers window. Start the edit mode by clicking the Toggle editing button QGIS 2.0 Edit.png.
  2. Let's start with land cover class Water. Use the European Urban Atlas to find water bodies. Zoom in to a lake.
  3. Click Add feature QGIS 2.0 Addpolygon.png to start digitizing. Start drawing polygons with left click. Finish the geometry by right-clicking.
  4. Enter the LUC class in the C_ID field. OK

Qgis digitizing.png

You may always delete a polygon by simply clicking Cancel in the attributes dialogue, or by selecting it QGIS 2.0 Select.png and deleting with the Delete selected QGIS 2.0 Delete selected.png button. Save your edits by clicking at times on Qgis save edits button.png. Finish the edit mode by clicking Toggle editing QGIS 2.0 Edit.png.

Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export