Let's assume we have the followingthere are two layers "borders"
'borders' (line) and "ocean"
'ocean' (polygon), see image below.
With the following"Difference" geoalgorithm can be found under Vector > Geoprocessing Tools > Difference...
Vector > Geoprocessing Tools > Difference
, it is possible to delete edges of the polygons that border the ocean.
The output new "borders"
'borders' layer will look as following
Keep on mind that this object is a MULTILINESTRING
.
In case, itthese features should be treated as a simple LINESTRING
, please proceed with Vector > Geometry Tools -> Multipart to singleparts
"Multipart to singleparts" can be found under Vector > Geometry Tools > Multipart to singleparts
.
There is a useful subject on this topic, see Convert MultiLineString to LineString using QGIS