[GIS] Cut line with polygons

fields-attributeslinepolygonqgis

How do I cut a single line with polygons (in several segments) so that each cut line take data from the polygons? Something like a centroid takes.

Best Answer

Since this appears to solve the users problem Ill add it here.

In ArcGIS and QGIS The intersect tool splits the lines at the polygon boundaries and does keep the attributes of each line feature as well as adds in the attributes of the polygon feature that it lies in if the Join Attributes selection is set to ALL.