Added support for LineString and MultiLineString.