Hi,
I am encountering an issue when attempting to convert a polygon JSON object into an IGeometry object within my Java SOE (Server Object Extension) code. It works fine for Point, Polyline, Multipoint but I keep getting the below error "AutomationException: The operation cannot be performed on a non-simple geometry" event though the polygon I'm passing is simple? below is the code snippet and sample Polygon JSON. My Java SOE code is running on ArcGIS Server 11.5 on windows machine.
>>>>>>>>
IJSONObject jsonObject = new com.esri.arcgis.system.JSONObject();
jsonObject.parseString(inputGeometryJson);
IGeometry geometry = this.jsonConverter.toGeometry(jsonObject, esriGeometryType.esriGeometryAny, false, false);
>>>>>>>>
Below is the sample Polygon JSON I'm using for testing:
{"rings":[[[-97,32],[-98,34],[-96,36],[-97,32]]],"spatialReference":{"wkid":4326}}