<?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: Robust way for testing geometric equivalence in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/robust-way-for-testing-geometric-equivalence/m-p/94584#M2519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you copy the geometry and project it, you don't set the spatial reference.&amp;nbsp; The call to Project will update the spatial reference for you.&amp;nbsp; If you set the spatial reference and then call Project it will not do anything because it uses the spatial reference property to know what coordinate system it is projecting from.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 May 2013 14:00:41 GMT</pubDate>
    <dc:creator>NeilClemmons</dc:creator>
    <dc:date>2013-05-01T14:00:41Z</dc:date>
    <item>
      <title>Robust way for testing geometric equivalence</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/robust-way-for-testing-geometric-equivalence/m-p/94583#M2518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I please get some advice as to how to use IRelationalOperator on geometries from different layers with different spatial references? I have a routine which gets a test and base feature cursor from 2 layers and then iterates through each feature in the test cursor and compares it to each feature in the base cursor using IRelationalOperator::Equals to determine if a match is found. This works perfectly if the features have the same spatial reference. However if I get the same layer and export it into a different spatial reference then the routine will return False for all features. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried assigning the IFeautre:Shapecopy to an IGeometry, setting the .Spatial Reference and then calling IGeometry::Project but still am not having any luck. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advice is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks guys&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 04:31:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/robust-way-for-testing-geometric-equivalence/m-p/94583#M2518</guid>
      <dc:creator>GinoMellino</dc:creator>
      <dc:date>2013-05-01T04:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Robust way for testing geometric equivalence</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/robust-way-for-testing-geometric-equivalence/m-p/94584#M2519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you copy the geometry and project it, you don't set the spatial reference.&amp;nbsp; The call to Project will update the spatial reference for you.&amp;nbsp; If you set the spatial reference and then call Project it will not do anything because it uses the spatial reference property to know what coordinate system it is projecting from.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 14:00:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/robust-way-for-testing-geometric-equivalence/m-p/94584#M2519</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-05-01T14:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Robust way for testing geometric equivalence</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/robust-way-for-testing-geometric-equivalence/m-p/94585#M2520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Neil, once again you have saved me, it is working beautifully. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I now use IGeoDataset::SpatialReference to obtain the spatial reference of the base layer and then call IGeometry::Project using this spatial reference for the features in the test layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gino&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 04:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/robust-way-for-testing-geometric-equivalence/m-p/94585#M2520</guid>
      <dc:creator>GinoMellino</dc:creator>
      <dc:date>2013-05-02T04:10:08Z</dc:date>
    </item>
  </channel>
</rss>

