Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a straight line which runs through a bunch of polygons, which don't have spacing between them (border to border).

Is there an easy way with QGIS to calculate which polygons it passes and by what percentage of the total distance its within these polygons?

I'm using Ubuntu, QGIS 1.8.

share|improve this question
add comment

1 Answer

I would go on step by step.

  • Calculate the length of your lines and add it to the attribute table. Open the field calculator in the attribute table and add a new field calculating the length of the lines (geometry code $length).
  • Cut your lines with your polygons in a way that you get a layer with only the intersecting parts.
  • Calculate the length for those intersecting parts again and use the field calculator to calculate the intersecting percentage.
share|improve this answer
    
thx, now I do have a way where to search/learn, guiding to the result :-) –  Chris Pallasch Jan 3 '13 at 19:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.