Creating samples from vector input
I am using the ‘assign class by thematic layer’ algorithm to create samples from a vector input. My vector input is a polygon shapefile. Every segment that touches a polygon in the thematic layer, no matter the amount of overlap, becomes a training sample. Is there a way to specify that a segment only becomes a training sample if a relative percent of the thematic layer polygon is within the segment?
One thought I had was to convert the thematic layer to another object level, then I could use the ‘Rel.area of’ feature to find which samples meet the area requirement. I haven’t tested this yet. I’m hoping there’s a more direct way to get there.
Was this article helpful?
2 comments
Hi Lisa,
Good question! Please have a look at the "convert thematic objects to samples" algorithm which directly converts your vector to samples. You have different parameters in this algorithm to define for example overlap requirements. This is a fairly new algorithm and will make your rule set more elegant ;).
Cheers,
Matthias
Just what I needed, thank you!