handle LineString and MultiLineString features