<?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: Geoprocessing failing due to Definition Query in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-failing-due-to-definition-query/m-p/511077#M13767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you look at the help for this &lt;A href="http://resources.arcgis.com/en/help/main/10.2/#/Euclidean_Distance/009z0000001p000000/"&gt;tool&lt;/A&gt;, the distance takes a number but you have entered a string with units.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And that means whatever the projection of your data is, will be the units of the entered double.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've come across this before and had to crudely convert degrees to meters.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Dec 2013 17:19:24 GMT</pubDate>
    <dc:creator>JohnStephens</dc:creator>
    <dc:date>2013-12-13T17:19:24Z</dc:date>
    <item>
      <title>Geoprocessing failing due to Definition Query</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-failing-due-to-definition-query/m-p/511075#M13765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm attempting to iterate through the layers in a MXD and generate euclidean distance rasters for them. This works fine when the layers have no definition query applied to them. I get this generic COMException when there is a def query applied. Any thoughts? I've also included a bit of source code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried calling the gp tool in different ways, so far no luck. I haven't had any luck with searching online either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Error Msg:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component. at ESRI.ArcGIS.Geoprocessing.GeoProcessorClass.Execute(String Name, IVariantArray ipValues, ITrackCancel pTrackCancel) at Analust.tool.Dummy(IGeoDataset inFeature) in \\C:\Apps\temp\analyst.cs: line 34&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
IGeoDataset data = (IGeoDataset)layer;
IGeoDataset EucDistRas = null;
IGeoProcessor gp = new GeoProcessorClass();

IVariantArray parameters = new VarArrayClass();
parameters.Add(@"C:\Apps\NTR_Demo\_inputs\NestingSites");
parameters.Add("1000 Meters");

gp.Execute("EucDistance_sa", parameters, null);
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Grace&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 19:35:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-failing-due-to-definition-query/m-p/511075#M13765</guid>
      <dc:creator>GraceCai</dc:creator>
      <dc:date>2013-12-09T19:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing failing due to Definition Query</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-failing-due-to-definition-query/m-p/511076#M13766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you look at the help for this &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/#/Euclidean_Distance/009z0000001p000000/"&gt;tool&lt;/A&gt;&lt;SPAN&gt;, the distance takes a number but you have entered a string with units.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 14:26:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-failing-due-to-definition-query/m-p/511076#M13766</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2013-12-13T14:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing failing due to Definition Query</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-failing-due-to-definition-query/m-p/511077#M13767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you look at the help for this &lt;A href="http://resources.arcgis.com/en/help/main/10.2/#/Euclidean_Distance/009z0000001p000000/"&gt;tool&lt;/A&gt;, the distance takes a number but you have entered a string with units.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And that means whatever the projection of your data is, will be the units of the entered double.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've come across this before and had to crudely convert degrees to meters.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 17:19:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-failing-due-to-definition-query/m-p/511077#M13767</guid>
      <dc:creator>JohnStephens</dc:creator>
      <dc:date>2013-12-13T17:19:24Z</dc:date>
    </item>
  </channel>
</rss>

