<?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 Automation Exception from FeatureIndex in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/automation-exception-from-featureindex/m-p/232031#M650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Java application that uses ArcGIS RT 10.1.&amp;nbsp; One feature class in my data set consists of polygons and several of lines.&amp;nbsp; I have built an index over the polygon class and am calling FeatureIndex.nearestFeature() on each line to see which polygon is closest.&amp;nbsp; This works for some of the line classes, but one of them causes an immediate AutomationException from 'nearestFeature'.&amp;nbsp; I am guarding against null shapes and empty shapes and cannot figure why this one class is causing issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any suggestions or guesses as to why this happens only on one input class. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Nov 2014 22:01:32 GMT</pubDate>
    <dc:creator>StevenHirsch</dc:creator>
    <dc:date>2014-11-03T22:01:32Z</dc:date>
    <item>
      <title>Automation Exception from FeatureIndex</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/automation-exception-from-featureindex/m-p/232031#M650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Java application that uses ArcGIS RT 10.1.&amp;nbsp; One feature class in my data set consists of polygons and several of lines.&amp;nbsp; I have built an index over the polygon class and am calling FeatureIndex.nearestFeature() on each line to see which polygon is closest.&amp;nbsp; This works for some of the line classes, but one of them causes an immediate AutomationException from 'nearestFeature'.&amp;nbsp; I am guarding against null shapes and empty shapes and cannot figure why this one class is causing issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any suggestions or guesses as to why this happens only on one input class. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 22:01:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/automation-exception-from-featureindex/m-p/232031#M650</guid>
      <dc:creator>StevenHirsch</dc:creator>
      <dc:date>2014-11-03T22:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Automation Exception from FeatureIndex</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/automation-exception-from-featureindex/m-p/232032#M651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting.&lt;/P&gt;&lt;P&gt;Is your data set from a local data source, like from a map package? Or is it from a Feature Service?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 18:42:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/automation-exception-from-featureindex/m-p/232032#M651</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2014-11-10T18:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Automation Exception from FeatureIndex</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/automation-exception-from-featureindex/m-p/232033#M652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, Eric!&amp;nbsp; It was from a local GDB.&amp;nbsp; After a lot of hair pulling, it turns out that nearestFeature() does not gracefully handle situations where the passed geometry is in a different coordinate system (shame on me) OR is projected correctly but through a data entry error resides at a very large distance from anything in the index (a bug or a feature?).&amp;nbsp; I really, really wish that AutomationExceptions provided some diagnostic detail - or do they and perhaps I'm just not getting at them properly? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always more to learn, and thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 18:54:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/automation-exception-from-featureindex/m-p/232033#M652</guid>
      <dc:creator>StevenHirsch</dc:creator>
      <dc:date>2014-11-10T18:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Automation Exception from FeatureIndex</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/automation-exception-from-featureindex/m-p/232034#M653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steven, I couldn't agree more. An AutomationException without a meaningful message is one of the most frustrating experiences a developer can encounter. We need to continue being vigilant and reactive to feedback like this. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 21:46:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/automation-exception-from-featureindex/m-p/232034#M653</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2014-11-10T21:46:34Z</dc:date>
    </item>
  </channel>
</rss>

