laptop and a wrench

Bug

ArcObjects returns the error message, "Cannot convert polylines or polygons with curves to JSON format" when converting a polyline or a polygon with curves into a JSON object.

Last Published: April 16, 2020 ArcObjects SDK
Bug ID Number BUG-000129956
SubmittedApril 7, 2020
Last ModifiedJune 5, 2024
Applies toArcObjects SDK
Version found10.8
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusWill Not Be Addressed

Additional Information

In order to write the geometry to JSON, it is necessary to set the property of JSON to be able to write curve. The code is as below: IPropertySet pPS = new PropertySet(); pPS.SetProperty("writeCurves", true)); IJSONSerializer(convertGeometry).InitSerializer(jsonWriter, pPS); Then, the rest of the original code works.

Steps to Reproduce

Bug ID: BUG-000129956

Software:

  • ArcObjects SDK

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options