How to create AI train data with QGIS
In this how-to, we will use Areas to store our data in. Areas can overlap and be grouped together using a particular attribute, in this case FOLIAGE. The FOLIAGE attribute should contain a single integer number, which represents the classification. For example, we can use the following classification:
- Deciduous Tree
- Pine Tree
- Heath area
- Hedge
- Bush
- Reed
- Flower bed
- Leafless Tree Area
The areas are drawn on top of a particular Overlay. In this case we will use a Satellite Overlay with a grid size of 0.25 meter.
How to create AI train data with QGIS:
- Open your project in editor mode.
- Hover over Overlays, and under Topography for Add New, select Satellite.
- With the Satellite Overlay selected, change the grid size to 0.25 m.
- Hover over Areas in the ribbon bar, and select Add new Empty Area.
- With the Area selected, select the Attribute tab in the Area Detail Panel.
- Under Add new Attribute, type FOLIAGE for name and 1 for value.
- Click Save New Attribute to add the FOLIAGE attribute.
- Click on the Group by Attribute button in the Area Overview Panel.
- Add the same Attribute name as added for the Area in the previous steps.
- Next, hover over Areas in the ribbon bar and select Export Geo Data
- For Filter, select Foliage
- Select any of the GeoJSON options.
- Click on the Copy the URL button next to Web Feature Service (WFS)
- Open QGIS