<?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: GeometryService.Relation NON-IDENTICAL? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometryservice-relation-non-identical/m-p/149287#M3456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;in relation you can write &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myGeometryService.relation(compareArray1, compareArray2,GeometryService.SPATIAL_REL_RELATION ,"G1 != G2")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you must use G1 (compareArray1) and G2(compareArray2)&amp;nbsp; and not compareArray1 and not compareArray2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;confront is done for index:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;compareArray1[0]&amp;nbsp; with compareArray2[0] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;compareArray1[1]&amp;nbsp; with compareArray2[1] &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;IDENTICAL (G1, G2) = TRUE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IDENTICAL (G1, G2) = FALSE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;G1 == G2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;G1 = G2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;G1 != G2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you also can reverse order&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;G2 != G2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Jan 2011 17:03:26 GMT</pubDate>
    <dc:creator>nicogis</dc:creator>
    <dc:date>2011-01-23T17:03:26Z</dc:date>
    <item>
      <title>GeometryService.Relation NON-IDENTICAL?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometryservice-relation-non-identical/m-p/149284#M3453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I have been struggling to figure out how to perform a spatial test on a graphics layer and a featureset.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I am trying to do is extend the graphical search functionality in the search widget so that a user can press the ???A??? key and add additional features to both the graphics layer and the RecordData class object. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have figured the main functions for this extension but now I am finding that if the added features overlap the existing graphics layer then duplicates will be produced in both the graphics layer and the RecordData class object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To overcome this problem, I would like to use compare the existing in map graphicslayer to the new featureset that is produced when an additional graphical query is made. I think I am looking to use a GeometryService.relation method with the spatialRelationship parameter set to SPATIAL_REL_RELATION. However I have no Idea how to set up the comparisonString. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I???ve tried to jump into the Shape Comparison Language documentation but I must admit that it is completely over my head. I have tried my best to generate the correct parameters but I am obviously doing something wrong. Here is what I???ve got:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myGeometryService.relation(compareArray1, compareArray2,GeometryService.SPATIAL_REL_RELATION,"compareArray1 != compareArray2")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Error I get whilst running this method is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[FaultEvent fault=[RPC Fault faultString="Object reference not set to an instance of an object." faultCode="500" faultDetail="Unable to perform the relation operation"] messageId=null type="fault" bubbles=false cancelable=true eventPhase=2]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know what I may be doing wrong? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tyler Waring&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 19:03:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometryservice-relation-non-identical/m-p/149284#M3453</guid>
      <dc:creator>TylerWaring</dc:creator>
      <dc:date>2010-11-05T19:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryService.Relation NON-IDENTICAL?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometryservice-relation-non-identical/m-p/149285#M3454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Another option could be to try and prevent the duplicates by not letting the server return the features that have already been loaded. Try adding a NOT IN SQL clause to the Query.where property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. OBJECTID NOT IN (1, 2, 3, ...)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 17:23:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometryservice-relation-non-identical/m-p/149285#M3454</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-11-08T17:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryService.Relation NON-IDENTICAL?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometryservice-relation-non-identical/m-p/149286#M3455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, That's exactly what I needed. Thanks for finding the right size solution for my problem.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am curious though, how do you integrate the Shape Comparison Language with a Flex applicaiton using GeometryService.SPATIAL_REL_RELATION? It sounds both interesting and powerful. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any information will be greatly appreciated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tyler&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 16:48:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometryservice-relation-non-identical/m-p/149286#M3455</guid>
      <dc:creator>TylerWaring</dc:creator>
      <dc:date>2010-11-10T16:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryService.Relation NON-IDENTICAL?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometryservice-relation-non-identical/m-p/149287#M3456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;in relation you can write &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myGeometryService.relation(compareArray1, compareArray2,GeometryService.SPATIAL_REL_RELATION ,"G1 != G2")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you must use G1 (compareArray1) and G2(compareArray2)&amp;nbsp; and not compareArray1 and not compareArray2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;confront is done for index:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;compareArray1[0]&amp;nbsp; with compareArray2[0] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;compareArray1[1]&amp;nbsp; with compareArray2[1] &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;IDENTICAL (G1, G2) = TRUE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IDENTICAL (G1, G2) = FALSE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;G1 == G2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;G1 = G2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;G1 != G2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you also can reverse order&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;G2 != G2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jan 2011 17:03:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometryservice-relation-non-identical/m-p/149287#M3456</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2011-01-23T17:03:26Z</dc:date>
    </item>
  </channel>
</rss>

