0

I have a shapefile with polygons and a line. They are in the same CRS and they do intersect. But when I run the intersect tool, it results in an empty layer (though there is no error message).

I have tried both the standard QGIS intersect tool, and SAGE's 'polygon-line intersection' with the same result. I have checked geometry validity.

enter image description here

3
  • 1
    Hi, the type of input layer geometry defines the type of output layer, so if you use the ploygons layer geometry as input, the output will be of polygon type, and intersection between polygons and lines does not output any polygon. Can you confirm if the output is empty using the lines layer as input? Commented Dec 17, 2023 at 3:48
  • If the line layer is the input, the output is NOT empty. But as you say the output is a line. Whereas I need all the polygons that the line passes through.
    – Beardsley
    Commented Dec 17, 2023 at 4:01
  • 5
    Extract by location using intersects as the geometric predicate.
    – Ben W
    Commented Dec 17, 2023 at 4:26

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.