<?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 SceneView queryFeatures in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-queryfeatures/m-p/1224432#M79085</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;Can the geometry of Z values ​​be returned when querying?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let btn = sceneView.on('click', (event) =&amp;gt; {
             sceneView.hitTest(event).then((response) =&amp;gt; {
                    if (response.results.length &amp;gt; 0) {
                        let graphic = response.results[0].graphic;

                        graphic.layer.queryFeatures(
                            {
                                objectIds: [graphic.attributes[graphic.layer.objectIdField]],
                                outFields: "*",
                                returnGeometry: true,
                                returnZ: true,
                                multipatchOption: "xyFootprint"
                            }
                        ).then((result) =&amp;gt; {
                          // Can the geometry of Z values ​​be returned when querying?
                        });
                    }
             });
         });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="console" style="width: 547px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54177iDDBC53F9C513EC7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="console" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;console&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 22 Oct 2022 03:29:08 GMT</pubDate>
    <dc:creator>Wade</dc:creator>
    <dc:date>2022-10-22T03:29:08Z</dc:date>
    <item>
      <title>SceneView queryFeatures</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-queryfeatures/m-p/1224432#M79085</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;Can the geometry of Z values ​​be returned when querying?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let btn = sceneView.on('click', (event) =&amp;gt; {
             sceneView.hitTest(event).then((response) =&amp;gt; {
                    if (response.results.length &amp;gt; 0) {
                        let graphic = response.results[0].graphic;

                        graphic.layer.queryFeatures(
                            {
                                objectIds: [graphic.attributes[graphic.layer.objectIdField]],
                                outFields: "*",
                                returnGeometry: true,
                                returnZ: true,
                                multipatchOption: "xyFootprint"
                            }
                        ).then((result) =&amp;gt; {
                          // Can the geometry of Z values ​​be returned when querying?
                        });
                    }
             });
         });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="console" style="width: 547px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54177iDDBC53F9C513EC7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="console" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;console&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2022 03:29:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-queryfeatures/m-p/1224432#M79085</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2022-10-22T03:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: SceneView queryFeatures</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-queryfeatures/m-p/1224986#M79106</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/527995"&gt;@Wade&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes this should be possible, but from the screenshot it seem like your features don't have any z-values stored. Or maybe the features are draped on the ground? In this case you could maybe query the height of the elevation service instead, like in this &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/elevation-query-points/" target="_self"&gt;sample&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Either way it would be helpful if you could provide us with a working codepen example so we can find out what&amp;nbsp;the issue is in this case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best, Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 23:53:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-queryfeatures/m-p/1224986#M79106</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-10-24T23:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: SceneView queryFeatures</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-queryfeatures/m-p/1225010#M79108</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous User&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, there may be other reasons, I found the possible reason, it should be the reason for publishing the service, 3d to multipatch.&lt;/P&gt;&lt;P&gt;Our current production function is underground.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 00:28:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sceneview-queryfeatures/m-p/1225010#M79108</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2022-10-25T00:28:12Z</dc:date>
    </item>
  </channel>
</rss>

