Function 'CreateLineString' is not applicable to type '{0}' in expression '{1}'. GeoJSON LineString value is expected with ...

Function 'CreateLineString' is not applicable to type '{0}' in expression '{1}'. GeoJSON LineString value is expected with at least 2 points, and cannot overlap itself over an interval of two or more consecutive points. Example "CreateLineString(CreatePoint(0.0,0.0),CreatePoint(10.0,10.0), CreatePoint(20.0,20.0))".