Conditions on feature lines of two-dimensional scalar fields and their application to planar fluid flows