<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to create 3D geometries with Pro SDK ImportFromJSON in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/unable-to-create-3d-geometries-with-pro-sdk/m-p/1038611#M38781</link>
    <description>&lt;P&gt;Narelle,&lt;/P&gt;&lt;P&gt;Thanks for responding! That makes complete sense, I thought I must be missing something simple. Our data structures don't have that concept of a 'z' flag, instead simply check the data, so I didn't think of it that way, but this works great!&lt;/P&gt;&lt;P&gt;Thanks again, life saver!&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
    <pubDate>Fri, 19 Mar 2021 13:04:12 GMT</pubDate>
    <dc:creator>JamesWright9</dc:creator>
    <dc:date>2021-03-19T13:04:12Z</dc:date>
    <item>
      <title>Unable to create 3D geometries with Pro SDK ImportFromJSON</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/unable-to-create-3d-geometries-with-pro-sdk/m-p/1036078#M38465</link>
      <description>&lt;P&gt;I am attempting to import some 3d geometry via json into ArcGIS Pro using the Pro SDK; however, I am having some issues.&lt;/P&gt;&lt;P&gt;I am trying to create a 3D Polyline geometry in pro via the following Pro SDK code in .NET:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;GeometryEngine.Instance.ImportFromJSON(JSONImportFlags.jsonImportDefaults, geometryJson);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;{&lt;BR /&gt;"paths": [&lt;BR /&gt;[&lt;BR /&gt;[&lt;BR /&gt;12712034.466200002,&lt;BR /&gt;2553465.0080999993,&lt;BR /&gt;0.0&lt;BR /&gt;],&lt;BR /&gt;[&lt;BR /&gt;12712036.5786,&lt;BR /&gt;2553461.9959999993,&lt;BR /&gt;-2.0&lt;BR /&gt;],&lt;BR /&gt;[&lt;BR /&gt;12712036.625100002,&lt;BR /&gt;2553461.9448999986,&lt;BR /&gt;-2.0&lt;BR /&gt;],&lt;BR /&gt;[&lt;BR /&gt;12712036.672600001,&lt;BR /&gt;2553461.9134000018,&lt;BR /&gt;-2.0&lt;BR /&gt;]&lt;BR /&gt;]&lt;BR /&gt;],&lt;BR /&gt;"spatialReference": {&lt;BR /&gt;"wkid": 3857,&lt;BR /&gt;"latestWkid": 3857,&lt;BR /&gt;"vcsWkid": 105703,&lt;BR /&gt;"latestVcsWkid": 6360&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 12 Mar 2021 18:59:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/unable-to-create-3d-geometries-with-pro-sdk/m-p/1036078#M38465</guid>
      <dc:creator>JamesWright9</dc:creator>
      <dc:date>2021-03-12T18:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create 3D geometries with Pro SDK ImportFromJSON</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/unable-to-create-3d-geometries-with-pro-sdk/m-p/1038400#M38766</link>
      <description>&lt;P&gt;Hi James,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expected format of a JSON string that supports Zs would have the "hasZ" attribute included.&amp;nbsp; Here's an example of JSON string for a polyline that supports Zs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"hasZ":true,"paths":[[[100,200,3],[201,300,4],[301,400,5],[401,500,6]]],"spatialReference":{"wkid":102100,"latestWkid":3857}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that attribute is included, then the geometry resulting from the&amp;nbsp;&lt;SPAN&gt;ImportFromJSON will have .HasZ = true&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Narelle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 00:12:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/unable-to-create-3d-geometries-with-pro-sdk/m-p/1038400#M38766</guid>
      <dc:creator>NarelleChedzey</dc:creator>
      <dc:date>2021-03-19T00:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create 3D geometries with Pro SDK ImportFromJSON</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/unable-to-create-3d-geometries-with-pro-sdk/m-p/1038611#M38781</link>
      <description>&lt;P&gt;Narelle,&lt;/P&gt;&lt;P&gt;Thanks for responding! That makes complete sense, I thought I must be missing something simple. Our data structures don't have that concept of a 'z' flag, instead simply check the data, so I didn't think of it that way, but this works great!&lt;/P&gt;&lt;P&gt;Thanks again, life saver!&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 13:04:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/unable-to-create-3d-geometries-with-pro-sdk/m-p/1038611#M38781</guid>
      <dc:creator>JamesWright9</dc:creator>
      <dc:date>2021-03-19T13:04:12Z</dc:date>
    </item>
  </channel>
</rss>

