I have a shapefile containing features (line) and I have a UTM grid in the same area. The feature is a coastline with different types. Now I would like to produce the length of coastline and the length of each type within each UTM grid cell. I prefer using Python or QGIS/SAGA GIS.
I found the post on how to create my UTM grid and I have the shapefile but how do I compute the fractions?