<?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: SHAPE.Area field in a feature service in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/shape-area-field-in-a-feature-service/m-p/643339#M19117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I realize this an old conversation, but was a solution to this need ever found?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Aug 2017 21:19:17 GMT</pubDate>
    <dc:creator>AhnaMiller2</dc:creator>
    <dc:date>2017-08-31T21:19:17Z</dc:date>
    <item>
      <title>SHAPE.Area field in a feature service</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/shape-area-field-in-a-feature-service/m-p/643334#M19112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering if it's possible to see the SHAPE.Area field in the pop-up window for a layer published in a feature service. I'd like users to be able to edit the layer, add their own polygons and then see the area of that polygon. When I check the REST service the SHAPE.Area field isn't visible. Is there some other work around?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 19:49:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/shape-area-field-in-a-feature-service/m-p/643334#M19112</guid>
      <dc:creator>MarkSmith1</dc:creator>
      <dc:date>2012-06-21T19:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: SHAPE.Area field in a feature service</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/shape-area-field-in-a-feature-service/m-p/643335#M19113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you check the visibility of certain key fields (e.g., ObjectID, Shape, Shape.Area, and Shape.Length) in the TOC layers before publishing the service. You can check them in ArcMap &amp;gt; Properties &amp;gt; Fields &amp;gt; Checkbox. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, in the pop up config, you can do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;configuration&amp;gt;
...
&amp;lt;fields&amp;gt;
...
&amp;lt;field name="SHAPE.area" visible="true"/&amp;gt;
...
&amp;lt;/fields&amp;gt;
...
&amp;lt;/configuration&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:20:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/shape-area-field-in-a-feature-service/m-p/643335#M19113</guid>
      <dc:creator>FengZhang2</dc:creator>
      <dc:date>2021-12-12T03:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: SHAPE.Area field in a feature service</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/shape-area-field-in-a-feature-service/m-p/643336#M19114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi i dont think you can access shape fields in with a feature service, i have had to add the same services as a maps services, make the polygons have no symbology and then label the polygons with the area filed, users can then see the area of the polygon they just made as a label&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 00:04:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/shape-area-field-in-a-feature-service/m-p/643336#M19114</guid>
      <dc:creator>AHay</dc:creator>
      <dc:date>2012-06-22T00:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: SHAPE.Area field in a feature service</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/shape-area-field-in-a-feature-service/m-p/643337#M19115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi i dont think you can access shape fields in with a feature service, i have had to add the same services as a maps services, make the polygons have no symbology and then label the polygons with the area filed, users can then see the area of the polygon they just made as a label&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply. Yeah, I was just thinking that this was going to be the work around. I wonder why you can't see them in a feature service. I can understand not making that field editable but read-only would be helpful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 12:16:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/shape-area-field-in-a-feature-service/m-p/643337#M19115</guid>
      <dc:creator>MarkSmith1</dc:creator>
      <dc:date>2012-06-22T12:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: SHAPE.Area field in a feature service</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/shape-area-field-in-a-feature-service/m-p/643338#M19116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am also having the same issue. I was going to display SHAPE.STArea field in Rest API to convert it into Acreage unit dynamically in web map but code works for other numerical field but not just this field. I didn't see this field displayed in REST API even though I made field checked-on visible in map document. Any help is highly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 15:47:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/shape-area-field-in-a-feature-service/m-p/643338#M19116</guid>
      <dc:creator>KushendraShah1</dc:creator>
      <dc:date>2016-01-28T15:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: SHAPE.Area field in a feature service</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/shape-area-field-in-a-feature-service/m-p/643339#M19117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I realize this an old conversation, but was a solution to this need ever found?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 21:19:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/shape-area-field-in-a-feature-service/m-p/643339#M19117</guid>
      <dc:creator>AhnaMiller2</dc:creator>
      <dc:date>2017-08-31T21:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: SHAPE.Area field in a feature service</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/shape-area-field-in-a-feature-service/m-p/643340#M19118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahna,&lt;/P&gt;&lt;P&gt;Sorry for late reply. Yeah I got help from geonet. I used geometry engine object to solve this in my arcgis javascript application. You can find the API reference here.&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.geometryengine-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.geometryengine-amd.html"&gt;esri/geometry/geometryEngine | API Reference | ArcGIS API for JavaScript 3.21&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function calculateAcreage(value) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var NameString = "&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Field Name:&amp;lt;/b&amp;gt; " + value.attributes.Field_Name + '&amp;lt;/p&amp;gt;';&lt;BR /&gt; var sqft = geometryEngine.geodesicArea(value.geometry, "square-feet");&lt;BR /&gt; var squarefeet = number.format(sqft, {places: 1});&lt;BR /&gt; var acres = number.format(sqft / 43560, {places: 2});&lt;BR /&gt; returnString = NameString + "&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Acres:&amp;lt;/b&amp;gt; " + acres + '&amp;lt;/p&amp;gt;';&lt;BR /&gt; return returnString;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;This result the&amp;nbsp;polygon field shape.area() that is in sq.ft to Acreage value. Hope this helps. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 15:46:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/shape-area-field-in-a-feature-service/m-p/643340#M19118</guid>
      <dc:creator>KushendraShah1</dc:creator>
      <dc:date>2017-09-14T15:46:52Z</dc:date>
    </item>
  </channel>
</rss>

