I am trying to make a map in QGIS composer. The final image needs to be transparent and I cannot get rid of the unwanted lines by making the bounding box smaller. Is there a way to remove/erase lines that I do not want in the final map (circled in red)?
- change your layer style to use the "Rule based renderer"
- add a filter rule which is only matched when the map is rendered in composer:
@map_id <> 'canvas'
- add a subfilter under this which hides those particular lines. You'll need some way to identify them, such as any ID field which is present in your data.