Creating Plot Boundaries and Grids: This section will cover how to create plot boundaries for a more detailed analysis in research fields; additionally, how to create grids boundaries for farming fields utilizing the QGIS software. This software can be downloaded from here.
There are more programs available that help to generate plot boundaries and additional products for digital agriculture. For example, FIELDimageR and Plot Phenix.
Creating Plot Boundaries
Import Orthomosaic to QGIS
- Drag and drop the file into QGIS.
Create Plots
- Click “Vector” > “Research Tools” > “Create Grid…”
- Grid type: Rectangle (polygon).
- Grid extent: Click “(…)” > “Calculate from Layer > “Select orthomosaic” > “OK.”
Specify Plot Size
- Example (1m x 10m):
- Horizontal spacing: 1
- Vertical spacing: 10
- Leave the rest of the fields as default.
If your orthomosaic has been georeferenced, you should not need to select the Grid CRS. If it has not, please select it now. - Click “Run in Background.”
- After the process is finished, click “Close.”
Delete Unnecessary Plots
- Make sure the new plot layer is selected.
- Click on the pencil to toggle the editing mode.
- Click “Select Features by Area or Single Click” (yellow square with a cursor on the top bar).
- Select all plots, leaving only the first one unselected.
- Press the Backspace button on your keyboard or click on the red trash can
button to remove the selected plots. You should be left with only the first plot.
You can use the Identify Features tool to see the values for each plot. The first plot will have a value of 1 as its ID. - Make sure the first plot is selected using the “Select Features by Area or
Single Click” tool. - Use the “Copy and Move Feature” tool. You can find it under “Edit” >
“Edit Geometry.” - Copy and paste the plots as needed.
You might want to manually edit the “ID” for each new plot created. This
unique ID can be used later to combine the plot layout information with each plot. You can edit them manually in the attribute table > Toggle the editing mode. - After the process is finished, click “Save” to save the edits.
- Click on the pencil to toggle the editing mode.
Save Generated Plots
- Right-click on the “Grid” layer > “Export” > “Save Feature As…”
- Format: ESRI Shapefile
- File name: “(…)” > Go to the desired folder > “Specify Filename”
> Click “‘Save.” - Leave the rest of the fields as default.
- Click “OK.”
- After the process is finished, you can now close QGIS.
- If prompted, click “YES” > On the second prompt, click “Discard.”
Creating Grids Boundaries
Import Orthomosaic to QGIS
- Drag and drop the file into QGIS.
Create Grids
- Click “Vector” > “Research Tools” > “Create Grid…”
- Grid type: Rectangle (polygon).
- Grid extent: Click “(…)” > “Calculate from Layer > “Select orthomosaic” > “OK.”
Specify Grid Size
- Example (10m x 10m):
- Horizontal spacing: 10
- Vertical spacing: 10
- Leave the rest of the fields as default.
If your orthomosaic has been georeferenced, you should not need to select the Grid CRS. If it has not, please select it now. - Click “Run in Background.”
- After the process is finished, click “Close.”
Calculate Grid Values
- Open Processing Toolbox.
Make sure you have imported into QGIS the grid shapefile or plot
boundary created previously. - Search for “Zonal statistics” > Double-click on the tool.
- On the Parameters tab:
- Raster layer: Select orthomosaic
- Statistics to calculate “(…)” > Select only “Mean” > “OK”
- Click “Run.”
- After the process is finished, click “Close.”
Delete Unnecessary Plots
- Right-click on the “Grid” layer > “Open Attribute Table.”
- Click on the pencil to toggle the editing mode.
- Click on the “_mean” column to order from low to high.
- From the left side of the table, on the first column, click on “1” to
highlight the row. - Scroll down until you find the first value in the “_mean” column
with value > 0. - Holding the “Shift” key, select all rows that need to be deleted.
- Click on the red trashcan to delete the selected features.
- After the process is finished, click “Save” to save the edits.
- Click on the pencil to toggle the editing mode.
- Close the attribute table.
Save Generated Grids
- Right-click on the “Grid” layer > “Export” > “Save Feature As…”
- Format: ESRI Shapefile
- File name: “(…)” > Go to the desired folder > “Specify Filename”
> Click “‘Save.” - Leave the rest of the fields as default.
- Click “OK.”
- After the process is finished, you can now close QGIS.
- If prompted, click “YES” > On the second prompt, click “Discard.”