DeepakSwamy123

Error 1500 Incorrect Geometry Type when adding a feature

Discussion created by DeepakSwamy123 on Jan 30, 2018

I am trying to add a feature to a feature layer using the REST API.

 

I gave the following input :

 

[     {       "attributes" : {         "style" : "#FF0000,5,1,#ff8800,0.4",         "CreationDate" : 1517216876474,          "EditDate" : 1517216876474       },        "geometry" :        {         "paths" :          [           [             [-105.73242, 44.11914],              [-98.30566, 42.84375],              [-95.36133, 44.52784],              [-92.37305, 42.87596]           ]         ]       }     }
]

 

But I am getting the error message:

 

Error: 1500, Description: Incorrect geometry type.

 

Can you please help me to resolve this error? Thank you very much.

Outcomes