<?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: Problem in calculating area of polygon through geometry service in ArcGIS API 1.3 in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-in-calculating-area-of-polygon-through/m-p/432656#M10080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply can you send me some sample code to solve this problem actually area returning from geometry service is not negative but it is not correct and in which units it is i.e KM,Meters? e.t.c.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Nov 2010 09:32:09 GMT</pubDate>
    <dc:creator>AdeelAhmed</dc:creator>
    <dc:date>2010-11-29T09:32:09Z</dc:date>
    <item>
      <title>Problem in calculating area of polygon through geometry service in ArcGIS API 1.3</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-in-calculating-area-of-polygon-through/m-p/432654#M10078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to calculate area of polygon using geometry service method arealenghts but it is not returning correct area infect it is returning area in negative.i am using ArcGIS API 1.3 for flex.i am using spatialReference (wkid=4326).below is code i am using&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var ploy:Polygon = new Polygon();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;poly.addRing(pntArray);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //making polygon from mapPoints array&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;poly.spatialReference = new SpatialReference(4326);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var gra:Graphic = new Graphic();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gra.geometry= poly;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;graphiclayer.add(gra);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;geomService.addEventListener(GeometryServiceEvent.AREA_LENGHTS_COMPLETE,areaslenghtsCompleteHandler);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;geomService.areasAndLenghts([gra]);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private function areaslenghtsCompleteHandler(event:GeometryServiceEvent):void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;txtArea.label ="Area is "+numFormatter.format(event.arealenghts.areas/1000000)+ " Km2"); //here&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; area is return from geomservice is negative.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help in this regard is very helpful and any code that can solve my problem .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ahmed&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Nov 2010 07:11:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-in-calculating-area-of-polygon-through/m-p/432654#M10078</guid>
      <dc:creator>AdeelAhmed</dc:creator>
      <dc:date>2010-11-27T07:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in calculating area of polygon through geometry service in ArcGIS API 1.3</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-in-calculating-area-of-polygon-through/m-p/432655#M10079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ahmed,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If your area is being returned as a negative than you are sending your points array for the polygons ring in a counter clockwise order. All you need to do is add your points yo your pntArray in reverse instead.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Nov 2010 10:50:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-in-calculating-area-of-polygon-through/m-p/432655#M10079</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-11-27T10:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in calculating area of polygon through geometry service in ArcGIS API 1.3</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-in-calculating-area-of-polygon-through/m-p/432656#M10080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply can you send me some sample code to solve this problem actually area returning from geometry service is not negative but it is not correct and in which units it is i.e KM,Meters? e.t.c.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 09:32:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-in-calculating-area-of-polygon-through/m-p/432656#M10080</guid>
      <dc:creator>AdeelAhmed</dc:creator>
      <dc:date>2010-11-29T09:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in calculating area of polygon through geometry service in ArcGIS API 1.3</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-in-calculating-area-of-polygon-through/m-p/432657#M10081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Adeel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; There is a good example online for lines&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=MeasureLine"&gt;http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=MeasureLine&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are several variables to this. Are you using ArcGIS Server 10? If so then you can specify that units you want the area results to be returned in. If not then you will have to do the unit conversion your self or first reproject the geometry then do the area calculation. Your issue with negative area is the order in which the points are added to the pntArray variable.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 12:57:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-in-calculating-area-of-polygon-through/m-p/432657#M10081</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-11-29T12:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in calculating area of polygon through geometry service in ArcGIS API 1.3</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-in-calculating-area-of-polygon-through/m-p/432658#M10082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This has nothing to do with this post, but I wanted to get input from Robert on something and didn't know how to get him other than a post he is subscribed to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert or others, please take a look at this post and let me know if you can help. I've been stuck on this one issue for a while and will be almost done with my application once I can get it worked out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/17846-Combine-basemap-layers?p=56514#post56514"&gt;http://forums.arcgis.com/threads/17846-Combine-basemap-layers?p=56514#post56514&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 16:56:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-in-calculating-area-of-polygon-through/m-p/432658#M10082</guid>
      <dc:creator>JustinFultz</dc:creator>
      <dc:date>2010-11-29T16:56:23Z</dc:date>
    </item>
  </channel>
</rss>

