I have a set of contour lines and a polygon set containing glaciers. Because I want the glaciers to have blue contours, I need to split the contour lines at the glacier boundaries.
I can achieve this using the following method:
1) Intersect the contours with the glacier polygon to create the glacier contours. 2) Create a spatial difference between the glacier polygon and an extent polygon. 3) Intersect the contours with the spatial difference from (2) to create the blue conoturs. 4) Merge the two results together if I want it in a single data set.
But the following method would be more convenient, and usable for other types of analyses as well.
1) Combine a polyline dataset (or point dataset for that matter) with a polygon dataset. The lines with be split at the polygon boundaries and each output line (or point) will take the attributes from the polygon it is inside.
Such a function would make my problem so much simpler to solve, as I can do it in one single operation.
Is there a function for this in QGIS?
No comments:
Post a Comment