Stack Exchange Network
Stack Exchange network consists of 182 Q&A communities including
Stack Overflow
, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this community
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
Is it possible in QGIS to split a line into segments given which polygon it falls within? I am using 2.8.
For example, a line that passes through three polygons will become three separate lines. Each time it crosses from one polygon into another it'd become a new line.
So in this case, where the green is a line, I would like to split it into three separate lines. Once for each time it crosses the black border of a polygon.
–
[QGIS 2.8]
Use the Intersect tool menu : "Vector / Geoprocessing tools / Intersect"
(from Miro's answer in comments)
[QGIS 2.18]
Use the Intersection Tool in the processing toolbox/panel :
This algorithm extracts the overlapping portions of
features in the Input and Intersect layers. Features in the
Intersection layer are assigned the attributes of the overlapping
features from both the Input and Intersect layers. Attributes are not
modified.
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
-
Please be sure to
answer the question
. Provide details and share your research!
But
avoid
…
-
Asking for help, clarification, or responding to other answers.
-
Making statements based on opinion; back them up with references or personal experience.
To learn more, see our
tips on writing great answers
.