<?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: get the coordinates from a shapefile in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/get-the-coordinates-from-a-shapefile/m-p/1338086#M5106</link>
    <description>&lt;P&gt;Thank you for the suggestion,but it do not work&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the api reference,the offical mathord is QFuture&amp;lt;*&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TQGiser_0-1697422727773.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83112i3737512CDA9B30A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TQGiser_0-1697422727773.png" alt="TQGiser_0-1697422727773.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and i tried like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TQGiser_1-1697422919183.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83113i418E90A0ED33DF18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TQGiser_1-1697422919183.png" alt="TQGiser_1-1697422919183.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the resault is：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TQGiser_2-1697422951286.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83114i7DBD54B001DEA9A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TQGiser_2-1697422951286.png" alt="TQGiser_2-1697422951286.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;seems like i have got the Geometry,&lt;/P&gt;&lt;P&gt;but the&amp;nbsp;FeatureQueryResult has not function to get the geometry point list&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so,what can i do&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2023 02:24:36 GMT</pubDate>
    <dc:creator>TQGiser</dc:creator>
    <dc:date>2023-10-16T02:24:36Z</dc:date>
    <item>
      <title>get the coordinates from a shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/get-the-coordinates-from-a-shapefile/m-p/1336498#M5097</link>
      <description>&lt;P&gt;Hi,all!&lt;/P&gt;&lt;P&gt;I made a ShapefileFeatureTable like this:&lt;/P&gt;&lt;P&gt;m_table1 = new ShapefileFeatureTable("E:/test/tp2.shp")(tp2 is a polyline shapefile);&lt;/P&gt;&lt;P&gt;i can use m_table1-&amp;gt;extent().xMax() know the evelope's x,y coords;&lt;/P&gt;&lt;P&gt;but when i want to know the x,y coord of the point which explode by the polylineshapefile,&lt;/P&gt;&lt;P&gt;i dont know how to work with it,&lt;/P&gt;&lt;P&gt;Just like the function in ArcPy:&lt;/P&gt;&lt;P&gt;arcpy.da.SearchCursor(polyLineShapeFile, ['SHAPE@X', 'SHAPE@Y', 'SHAPE@M'], explode_to_points=True)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thans a lot!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 09:21:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/get-the-coordinates-from-a-shapefile/m-p/1336498#M5097</guid>
      <dc:creator>TQGiser</dc:creator>
      <dc:date>2023-10-10T09:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: get the coordinates from a shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/get-the-coordinates-from-a-shapefile/m-p/1337351#M5103</link>
      <description>&lt;P&gt;First thing to do after creating the shapefile feature table is to query it for the feature you want, using the query parameters -&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-featuretable.html#queryFeatures" target="_blank"&gt;https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-featuretable.html#queryFeatures&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you have the Feature handy, you can get the feature's geometry&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-feature.html#geometry" target="_blank"&gt;https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-feature.html#geometry&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you get the geomtry, you'll need to use geometry_cast to cast the base class Geometry to a Polyline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Polyline is-a &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-multipart.html" target="_self"&gt;Multipart&lt;/A&gt;&amp;nbsp;geometry. You'll want to &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-multipart.html#parts" target="_self"&gt;go through the parts&lt;/A&gt;, and for-each&amp;nbsp; part, you can get a list of the points/vertices that make up the part&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-immutablepart.html#points" target="_blank"&gt;https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-immutablepart.html#points&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 16:19:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/get-the-coordinates-from-a-shapefile/m-p/1337351#M5103</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2023-10-12T16:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: get the coordinates from a shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/get-the-coordinates-from-a-shapefile/m-p/1338086#M5106</link>
      <description>&lt;P&gt;Thank you for the suggestion,but it do not work&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the api reference,the offical mathord is QFuture&amp;lt;*&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TQGiser_0-1697422727773.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83112i3737512CDA9B30A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TQGiser_0-1697422727773.png" alt="TQGiser_0-1697422727773.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and i tried like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TQGiser_1-1697422919183.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83113i418E90A0ED33DF18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TQGiser_1-1697422919183.png" alt="TQGiser_1-1697422919183.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the resault is：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TQGiser_2-1697422951286.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83114i7DBD54B001DEA9A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TQGiser_2-1697422951286.png" alt="TQGiser_2-1697422951286.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;seems like i have got the Geometry,&lt;/P&gt;&lt;P&gt;but the&amp;nbsp;FeatureQueryResult has not function to get the geometry point list&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so,what can i do&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 02:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/get-the-coordinates-from-a-shapefile/m-p/1338086#M5106</guid>
      <dc:creator>TQGiser</dc:creator>
      <dc:date>2023-10-16T02:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: get the coordinates from a shapefile</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/get-the-coordinates-from-a-shapefile/m-p/1338157#M5107</link>
      <description>&lt;P&gt;Hi,all,i have&amp;nbsp;figure out!&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TQGiser_0-1697457122339.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83131iE5FA726CED21A50D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TQGiser_0-1697457122339.png" alt="TQGiser_0-1697457122339.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 11:52:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/get-the-coordinates-from-a-shapefile/m-p/1338157#M5107</guid>
      <dc:creator>TQGiser</dc:creator>
      <dc:date>2023-10-16T11:52:26Z</dc:date>
    </item>
  </channel>
</rss>

