I am attempting to import some 3d geometry via json into ArcGIS Pro using the Pro SDK; however, I am having some issues.
I am trying to create a 3D Polyline geometry in pro via the following Pro SDK code in .NET:
GeometryEngine.Instance.ImportFromJSON(JSONImportFlags.jsonImportDefaults, geometryJson);
The call succeeds and i am provided a valid Geometry however the Z coordinates are ignored and the HasZ is set to false? Is this a bug or am I maybe missing something?
Here is the json I am passing in via the geometryJson variable. As you can see the z values are provided for each coordinate and the vertical spatial references are noted. Any help would be appreicated.
{
"paths": [
[
[
12712034.466200002,
2553465.0080999993,
0.0
],
[
12712036.5786,
2553461.9959999993,
-2.0
],
[
12712036.625100002,
2553461.9448999986,
-2.0
],
[
12712036.672600001,
2553461.9134000018,
-2.0
]
]
],
"spatialReference": {
"wkid": 3857,
"latestWkid": 3857,
"vcsWkid": 105703,
"latestVcsWkid": 6360
}
}