Point sampling on raster

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
(First phase systematic sampling)
(Second phase: stratified sampling with equal allocation)
Line 13: Line 13:
  
 
= Second phase: stratified sampling with equal allocation =
 
= Second phase: stratified sampling with equal allocation =
 
+
* In the search engine of the Processing Toolbox, type Random selection and select '''Random selection within subsets''' under Vector selection tools of QGIS.
## Confirm with {{button|text=OK}}. The new layer is added to the Layer Panel .
+
* Select Regular point grid (result of [[Create regular grid]]) as the input layer.
 +
* Select the Column name containing the grouping class code as ID field.
 +
* Enter 10 as sample size for each category.
 +
* Click on {{button|text=Run}} to execute the algorithm.
  
 
[[category:Working with Vector Data]]
 
[[category:Working with Vector Data]]

Revision as of 15:10, 26 November 2017

First phase systematic sampling

  1. Click Plugins --> Manage and Install Plugins.
  2. Type in the search bar Point sampling tool, click on the plugin name and then on Install plugin.
  3. Load the single band raster file C_ID.tif created by [Convert vector to Raster].
  4. Load the regular grid as vector point file systematic_grid100.shp' created by [Create regular point grid].
  5. Make sure that both layers are ticked in the [TOC].
  6. Open the Point Sampling Tool clicking Qgis psample button.png.
  7. Select the layer containing sampling points.
  8. Specify the output of the resulting vector file marking column with CTR + left click.
  9. Enter an output shapefile name systematic_grid100_cid.shp and path by clicking Browse.
  10. Confirm with OK. The new layer is added to the Layer Panel .

Qgis point sample.png

Second phase: stratified sampling with equal allocation

  • In the search engine of the Processing Toolbox, type Random selection and select Random selection within subsets under Vector selection tools of QGIS.
  • Select Regular point grid (result of Create regular grid) as the input layer.
  • Select the Column name containing the grouping class code as ID field.
  • Enter 10 as sample size for each category.
  • Click on Run to execute the algorithm.
Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export