functions for plotting length-profiles as shp-lines and polygons