eitdhc

Buffering in 3.9compact - Mixing input Geometry types

Discussion created by eitdhc on Jun 12, 2014
If you place different geometry types into the BufferParameters.geometries array and try to generate buffers the endpoint will crash with an error:

{"error":{"code":400,"message":"Unable to complete operation.","details":["Syntax error in JSON geometry representation"]}}



Sample of the JSON created and passed to the endpoint based on a geometries array of one point and one simple polygon:

{"geometryType":"esriGeometryPoint","geometries":[{"x":-12427133.174075715,"y":4914218.049149509,"spatialReference":{"wkid":102100,"latestWkid":3857}},{"rings":[[[-12427133.533385498,4914218.287572771],[-12427130.686178004,4914216.83072361],[-12427132.68162872,4914212.900465214],[-12427135.178522844,4914214.178059309],[-12427135.528835386,4914214.357313236],[-12427133.533385498,4914218.287572771]],[[-12427131.223425483,4914216.655518652],[-12427133.358863894,4914217.74822116],[-12427134.991457105,4914214.532518585],[-12427132.856019203,4914213.439816782],[-12427131.223425483,4914216.655518652]]],"spatialReference":{"wkid":102100,"latestWkid":3857}}]}


The obvious problem is in the geometryType declaration.

Is this intended behavior?  Nothing in the documentation states that you can't mix geometry types in the BufferParameters.geometries array.

Outcomes