<?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: How to get the area (as a double) from a ShapefileFeatureTable? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-the-area-as-a-double-from-a/m-p/468205#M5779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh also just realized that your where clause will probably mean you don't get any features back, as the where clause looks for rows that's returns true on that expression.&amp;nbsp; Try setting the WhereClause to "1=1" which would make all rows match the filter and you get them all back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your dataset also have an AREA attribute (like your screenshot seem to&amp;nbsp;indicate), you can read that using&lt;/P&gt;&lt;P&gt;feature.Attributes["AREA"]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 May 2020 05:04:41 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2020-05-19T05:04:41Z</dc:date>
    <item>
      <title>How to get the area (as a double) from a ShapefileFeatureTable?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-the-area-as-a-double-from-a/m-p/468200#M5774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I need to get the area from a shapefile, this has the area in its attribution table, but I need it as a double.&lt;/P&gt;&lt;P&gt;I've tried to convert the shapefile into a graphic but I don't know-how. This in order to work with the graphic library and calculate the areas.&amp;nbsp;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;P&gt;Erick Morris&lt;/P&gt;&lt;P&gt;Student of petroleum engineer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2020 21:24:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-the-area-as-a-double-from-a/m-p/468200#M5774</guid>
      <dc:creator>Erick_CamiloMorris_Duarte</dc:creator>
      <dc:date>2020-05-16T21:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the area (as a double) from a ShapefileFeatureTable?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-the-area-as-a-double-from-a/m-p/468201#M5775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A Shapefile is a collection of features, which means you might be asking one of several&amp;nbsp;questions depending on what&amp;nbsp;you're trying to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The area of each individual feature?&lt;/P&gt;&lt;P&gt;- The combined area values of all features?&lt;/P&gt;&lt;P&gt;- The area of the rectangular extent encompassing all features?&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;SPAN&gt;The area of the smallest polygon encompassing all features?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all cases above you should be able to follow sample&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/master/src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Data/FeatureLayerQuery" title="https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/master/src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Data/FeatureLayerQuery"&gt;arcgis-runtime-samples-dotnet/src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Data/FeatureLayerQuery at master · Esri/arcgis-ru…&lt;/A&gt;&amp;nbsp; and use ShapefileFeatureTable instead of the&amp;nbsp;ServiceFeatureTable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2020 22:49:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-the-area-as-a-double-from-a/m-p/468201#M5775</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2020-05-16T22:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the area (as a double) from a ShapefileFeatureTable?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-the-area-as-a-double-from-a/m-p/468202#M5776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike, thanks for replying. Yes I understand you, 1 Shapefile has just 1 feature, I just need the area of that feature.&lt;BR /&gt;And also I need the Sum of all the areas from another shapefile, Thanks for the advice! any news I'll post right here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2020 23:48:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-the-area-as-a-double-from-a/m-p/468202#M5776</guid>
      <dc:creator>Erick_CamiloMorris_Duarte</dc:creator>
      <dc:date>2020-05-16T23:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the area (as a double) from a ShapefileFeatureTable?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-the-area-as-a-double-from-a/m-p/468203#M5777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael, I've tried to display the area of the feature, but I don't get anything, the following is the code that I've been using:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/492572_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, here is the attribute table of the shapefile:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/492573_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 May 2020 00:23:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-the-area-as-a-double-from-a/m-p/468203#M5777</guid>
      <dc:creator>Erick_CamiloMorris_Duarte</dc:creator>
      <dc:date>2020-05-17T00:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the area (as a double) from a ShapefileFeatureTable?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-the-area-as-a-double-from-a/m-p/468204#M5778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using GeometryEngine.AreaGeodetic(feature.Geometry) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2020 05:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-the-area-as-a-double-from-a/m-p/468204#M5778</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2020-05-19T05:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the area (as a double) from a ShapefileFeatureTable?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-the-area-as-a-double-from-a/m-p/468205#M5779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh also just realized that your where clause will probably mean you don't get any features back, as the where clause looks for rows that's returns true on that expression.&amp;nbsp; Try setting the WhereClause to "1=1" which would make all rows match the filter and you get them all back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your dataset also have an AREA attribute (like your screenshot seem to&amp;nbsp;indicate), you can read that using&lt;/P&gt;&lt;P&gt;feature.Attributes["AREA"]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2020 05:04:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-the-area-as-a-double-from-a/m-p/468205#M5779</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2020-05-19T05:04:41Z</dc:date>
    </item>
  </channel>
</rss>

