In my SOE project, I need to convert a Point feature to JsonObject. The related code in my app is below:
IPoint point = gHelp.getPoint(k_Values, coordinate, pPtsColl); JsonObject onSegPoint = Conversion.ToJsonObject(point); | |
List<JsonObject> jsonGeometry = new List<JsonObject>(); |
The point does have X, Y and M values + geometry, etc. However, after the conversion to JsonObject, the M value is mission. How can this problem be solved? Thanks.
I tried this approach below and the problem got solved. Thanks for your review.
JsonObject onPoint = Conversion.ToJsonObject(point); | |
onPoint.AddDouble("M", point.M); |
Thanks.