<?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: Geometry Service - Areas and Length in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-service-areas-and-length/m-p/147720#M687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you ever find an answer to this? I'm having the same problem. The results just aren't making sense.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2012 14:26:19 GMT</pubDate>
    <dc:creator>DonnyVelazquez</dc:creator>
    <dc:date>2012-06-19T14:26:19Z</dc:date>
    <item>
      <title>Geometry Service - Areas and Length</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-service-areas-and-length/m-p/147719#M686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to do this operation with the Silverlight API and was getting what I think is incorrect data, so I went and tried to do the same with the REST interface and am getting the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using 102100 as my input SR, here is the ring I am using,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "rings" : [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; [[-10538362.6559228,4720678.36533211],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; [-10536290.0466925,4720685.02967047],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; [-10536276.7180158,4718585.76308674],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; [-10538355.9915844,4718592.42742511],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; [-10538362.6559228,4720678.36533211]]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and the output is 9002, feet or 9035, miles. The ring was drawn in Silverlight and should be close to a square mile. The results are not close to a square mile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;9002:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Areas: 46759714.5770107&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lengths: 27352.8925285099&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;9035:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Areas: 1.67726725846316&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lengths: 5.1804617088494&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just as observation here, the lengths reported for a square mile should be close to 4, because it has 4 sides, this lengths value adds the last set of coordinates to the length, the last set is just the first coords, just used to close the polygon. Is this correct? If I create a Path like this using the same coords, not including the last one:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "paths" : [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; [[-10538362.6559228,4720678.36533211],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; [-10536290.0466925,4720685.02967047],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; [-10536276.7180158,4718585.76308674],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; [-10538355.9915844,4718592.42742511]]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I get this value:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lengths: 3.88431596189669&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Close to 4, which is expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I doing something incorrectly? Any help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-bert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 17:23:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-service-areas-and-length/m-p/147719#M686</guid>
      <dc:creator>RobertMEIER</dc:creator>
      <dc:date>2011-07-11T17:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry Service - Areas and Length</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-service-areas-and-length/m-p/147720#M687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you ever find an answer to this? I'm having the same problem. The results just aren't making sense.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 14:26:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-service-areas-and-length/m-p/147720#M687</guid>
      <dc:creator>DonnyVelazquez</dc:creator>
      <dc:date>2012-06-19T14:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry Service - Areas and Length</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-service-areas-and-length/m-p/147721#M688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;in 10.1 if you put last point = first point or you don't put last point = first point return result Ok (count n side).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In 10 rest seems not check if polygon is correct (first = last) or force it (Polygon: "...A polygon contains an array of rings and a spatialReference. Each ring is represented as an array of points. The first point of each ring is always the same as the last point ...") so result area is Ok while lenght use n-1 side.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In 10.1 however force it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;without:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://servicesbeta2.esri.com/arcgis/rest/services/Geometry/GeometryServer/areasAndLengths?sr=102100&amp;amp;polygons=%5B%7B%0D%0A+%22rings%22+%3A+%5B%0D%0A+%5B%5B0%2C100%5D%2C%0D%0A+%5B100%2C100%5D%2C%0D%0A+%5B100%2C0%5D%2C%0D%0A+%5B0%2C0%5D%5D%0D%0A+%5D%0D%0A%7D%5D&amp;amp;lengthUnit=&amp;amp;areaUnit=&amp;amp;calculationType=planar&amp;amp;f=pjson"&gt;http://servicesbeta2.esri.com/arcgis/rest/services/Geometry/GeometryServer/areasAndLengths?sr=102100&amp;amp;polygons=%5B%7B%0D%0A+%22rings%22+%3A+%5B%0D%0A+%5B%5B0%2C100%5D%2C%0D%0A+%5B100%2C100%5D%2C%0D%0A+%5B100%2C0%5D%2C%0D%0A+%5B0%2C0%5D%5D%0D%0A+%5D%0D%0A%7D%5D&amp;amp;lengthUnit=&amp;amp;areaUnit=&amp;amp;calculationType=planar&amp;amp;f=pjson&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://servicesbeta2.esri.com/arcgis/rest/services/Geometry/GeometryServer/areasAndLengths?sr=102100&amp;amp;polygons=%5B%7B%0D%0A+%22rings%22+%3A+%5B%0D%0A+%5B%5B0%2C100%5D%2C%0D%0A+%5B100%2C100%5D%2C%0D%0A+%5B100%2C0%5D%2C%0D%0A+%5B0%2C0%5D%2C%5B0%2C100%5D%5D%0D%0A+%5D%0D%0A%7D%5D&amp;amp;lengthUnit=&amp;amp;areaUnit=&amp;amp;calculationType=planar&amp;amp;f=pjson"&gt;http://servicesbeta2.esri.com/arcgis/rest/services/Geometry/GeometryServer/areasAndLengths?sr=102100&amp;amp;polygons=%5B%7B%0D%0A+%22rings%22+%3A+%5B%0D%0A+%5B%5B0%2C100%5D%2C%0D%0A+%5B100%2C100%5D%2C%0D%0A+%5B100%2C0%5D%2C%0D%0A+%5B0%2C0%5D%2C%5B0%2C100%5D%5D%0D%0A+%5D%0D%0A%7D%5D&amp;amp;lengthUnit=&amp;amp;areaUnit=&amp;amp;calculationType=planar&amp;amp;f=pjson&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 09:18:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-service-areas-and-length/m-p/147721#M688</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2012-06-21T09:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry Service - Areas and Length</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-service-areas-and-length/m-p/147722#M689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After going over a couple of other threads I found the problem. When your using Web Mercator its a good idea to use the "esri.geometry.geodesicDensify" before using "esri.geometry.geodesicAreas". If the map is using another type of projection then you should project your geometry to "World_Cylindrical_Equal_Area" using the geometry service and then use the geometry service's "areasAndLengths" function. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will give you better accuracy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 11:39:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-service-areas-and-length/m-p/147722#M689</guid>
      <dc:creator>DonnyVelazquez</dc:creator>
      <dc:date>2012-06-21T11:39:01Z</dc:date>
    </item>
  </channel>
</rss>

