Function 'CreatePolygon' is not applicable to type '{0}' in expression '{1}'. GeoJSON Polygon value is expected with at least ...

Function 'CreatePolygon' is not applicable to type '{0}' in expression '{1}'. GeoJSON Polygon value is expected with at least 4 points, first and last points must be equal. Example "CreatePolygon(CreatePoint(0.0,0.0),CreatePoint(10.0,10.0), CreatePoint(20.0,20.0),CreatePoint(0.0,0.0))".