<?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 INTERSECT returns empty polygon (FLEX) in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-service-intersect-returns-empty-polygon/m-p/126414#M2986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You might want to call GeometryService's simplify method before calling intersects to make the geometry topologically correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The geometry in anticlockwise direction is considered as hole and hence that could be the reason for intersect not returning result.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2011 22:31:15 GMT</pubDate>
    <dc:creator>MehulChoksey</dc:creator>
    <dc:date>2011-03-30T22:31:15Z</dc:date>
    <item>
      <title>Geometry Service INTERSECT returns empty polygon (FLEX)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-service-intersect-returns-empty-polygon/m-p/126412#M2984</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 trying to call an INTERSECT function from a Geometry Service residing on an ArcGIS 10 Server using Flex.&amp;nbsp; The function seems to return successfully, however, the result is a polygon with 0 rings.&amp;nbsp; I know for a fact that the geometries (2 polygons) passed in intersect and I am under the impression that this function is supposed to return to me the intersecting polygon.&amp;nbsp; Am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Geometry Service allows me to perform Buffers successfully so I don't think that there is a problem with the Geometry Service that I'm aware of.&amp;nbsp; When I check it out in the rest API, it displays that the INTERSECT function is available to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the ArcGIS Flex 2.2 Library, Flex 4, ArcGIS 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;myGeometryService.addEventListener(GeometryServiceEvent.INTERSECT_COMPLETE, intersectCompleteHandler);
myGeometryService.intersect([myGeometry], myGeometry2);

//Note: myGeometry and myGeometry2 are both Polygons

function intersectCompleteHandler(event:GeometryServiceEvent):void{

&amp;nbsp;&amp;nbsp;&amp;nbsp; for each(var myPolygon:Polygon in event.result){

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //myPolygon has 0 rings when I check it out here and it does not return a valid shape
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 19:24:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-service-intersect-returns-empty-polygon/m-p/126412#M2984</guid>
      <dc:creator>WilliamRidgeway</dc:creator>
      <dc:date>2011-03-28T19:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry Service INTERSECT returns empty polygon (FLEX)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-service-intersect-returns-empty-polygon/m-p/126413#M2985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I seemed to have solved my issue for now.&amp;nbsp; I believe that the polygon I was passing to the INTERSECT method was somehow not valid.&amp;nbsp; I was generating a cone-shaped polygon by the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var myPoint1:MapPoint = new MapPoint(x1,y1);
var myPoint2:MapPoint = new MapPoint(x2,y2);
var myPoint3:MapPoint = new MapPoint(x3,y3);

var myRing:Array = [myPoint1, myPoint2, myPoint3, myPoint1];

var myPolygon:Polygon = new Polygon([myRing]);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was using the polygon created above to intersect a set of circular polygons that were generated with the BUFFER method from the geometry service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I switched the order of myPoint2 and myPoint3 in the myRings array order, the INTERSECT method worked correctly with the polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure why it wouldn't work with the same polygon before but now it does.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:11:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-service-intersect-returns-empty-polygon/m-p/126413#M2985</guid>
      <dc:creator>WilliamRidgeway</dc:creator>
      <dc:date>2021-12-11T07:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry Service INTERSECT returns empty polygon (FLEX)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-service-intersect-returns-empty-polygon/m-p/126414#M2986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You might want to call GeometryService's simplify method before calling intersects to make the geometry topologically correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The geometry in anticlockwise direction is considered as hole and hence that could be the reason for intersect not returning result.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 22:31:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-service-intersect-returns-empty-polygon/m-p/126414#M2986</guid>
      <dc:creator>MehulChoksey</dc:creator>
      <dc:date>2011-03-30T22:31:15Z</dc:date>
    </item>
  </channel>
</rss>

