<?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: Arcpy Script Tool Issue with Euclidean Distance in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-script-tool-issue-with-euclidean-distance/m-p/181732#M13987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;your destination folder contains a space and a $ neither of which behave well with most SA functions, change source and/or destination folders to be compliant (ie c:\test )&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jul 2011 21:24:50 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2011-07-04T21:24:50Z</dc:date>
    <item>
      <title>Arcpy Script Tool Issue with Euclidean Distance</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-script-tool-issue-with-euclidean-distance/m-p/181731#M13986</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've been having trouble executing the EucDistance tool using arcpy. When I run my script in Python Shell, everything is well. But when I import the script into a tool box and run it from there, things start to fall apart. Currently I'm testing out a smaller script with just EucDistance. Right now I get this message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;O:\EPScratch\Grace\data\apda_bc.shp (input)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;O:\EPScratch\Grace\scratch\test1 (out path)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The item was not found. [ItemType: {00000000-0000-0000-0000-000000000000}]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No spatial reference exists.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010029: Unable to create the raster \\CAL-S-01005\cag605-f$\Cached\My Documents\ArcGIS\Default.gdb\EucDist_shp2. Distance mapping is failed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010067: Error in executing grid expression.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (EucDistance).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (TESTER).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now I have the following environment settings:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CheckOutExtension("spatial")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.overwriteOutput=True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.cellSize = 50&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.extent = "O:\EPScratch\Grace\data\Ext.shp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.outputCoordinateSystem ="O:\EPScratch\Grace\data\Ext.shp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Past errors I've gotten with EucDistance included "Invalid SQL Statements". The funny thing is when I use arcpy.gp.EucDistance_sa(inRas,outRas) I don't get such errors (Currently I'm using x= EucDistance(inRas) then x.save(outRas)) . I'm so confused! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for all of your time!&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, 04 Jul 2011 20:33:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-script-tool-issue-with-euclidean-distance/m-p/181731#M13986</guid>
      <dc:creator>GraceCai</dc:creator>
      <dc:date>2011-07-04T20:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Script Tool Issue with Euclidean Distance</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-script-tool-issue-with-euclidean-distance/m-p/181732#M13987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;your destination folder contains a space and a $ neither of which behave well with most SA functions, change source and/or destination folders to be compliant (ie c:\test )&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 21:24:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-script-tool-issue-with-euclidean-distance/m-p/181732#M13987</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-07-04T21:24:50Z</dc:date>
    </item>
  </channel>
</rss>

