<?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: Topo To Raster Error? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/topo-to-raster-error/m-p/363528#M28762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well I finally figured it out.&amp;nbsp; Apparently its not allowed to have a blank spaces in the path name.&amp;nbsp; Valuable lesson learned, never again will I use spaces when naming files and folders.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 May 2012 13:45:02 GMT</pubDate>
    <dc:creator>CharlesGant</dc:creator>
    <dc:date>2012-05-13T13:45:02Z</dc:date>
    <item>
      <title>Topo To Raster Error?</title>
      <link>https://community.esri.com/t5/python-questions/topo-to-raster-error/m-p/363527#M28761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is a block of code and the error generated.&amp;nbsp; Can some please tell me what the issue is?&amp;nbsp; I use Topo To Raster in other code everyday, I'm not sure if I'm just overlooking something simple or what.&amp;nbsp; I opened ArcMap and ran the exact same shapefile with the exact same field, in the exact same location, through the Topo To Raster tool, and it ran fine.&amp;nbsp; Thus, I dont think its the data.&amp;nbsp; I could be wrong though.&amp;nbsp; All the data is in the shapefile is point data.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Update:&amp;nbsp; Same block of code works for a completely different shapefile.&amp;nbsp; Seems as if something is going on behind the scenes when I run the tool inside ArcMap that I dont have incorporated into the python code.&amp;nbsp; I checked the data in the first shapefile with that of the second, and they are both of type double.&amp;nbsp; Makes no sense.&amp;nbsp; It's like its a data issue but the data looks just like the data in the second shapefile that works fine.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import os
import shutil
import arcpy
from arcpy import env
from arcpy.sa import *
import arcview
import sys, string, os, arcgisscripting
gp = arcgisscripting.create(10.0)
gp.SetProduct("ArcView") # or ArcEditor or ArcInfo
gp.overwriteoutput = 1

arcpy.CheckOutExtension("spatial")

shapefile = 'R:\\Tornado Research\\Test\\TestLayerDir\\20060402\\00Z\\SfcShape.shp'
Outraster = 'R:\\Tornado Research\\Test\\TestLayerDir\\20060402\\00Z\\out'

outTTR = TopoToRaster([TopoPointElevation([[shapefile, 'CAPE0_3KM']])], "0.0735204010009768", "", "20", "", "", "ENFORCE", "CONTOUR", "40", "", "1", "0", "", "")
outTTR.save(Outraster)
print 'Topo To Raster Done'
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000859: The required parameter Input feature data is empty, or is not the type of Topo features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000859: The required parameter Output surface raster is empty, or is not the type of Raster Dataset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (TopoToRaster).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 May 2012 10:38:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/topo-to-raster-error/m-p/363527#M28761</guid>
      <dc:creator>CharlesGant</dc:creator>
      <dc:date>2012-05-13T10:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Topo To Raster Error?</title>
      <link>https://community.esri.com/t5/python-questions/topo-to-raster-error/m-p/363528#M28762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well I finally figured it out.&amp;nbsp; Apparently its not allowed to have a blank spaces in the path name.&amp;nbsp; Valuable lesson learned, never again will I use spaces when naming files and folders.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 May 2012 13:45:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/topo-to-raster-error/m-p/363528#M28762</guid>
      <dc:creator>CharlesGant</dc:creator>
      <dc:date>2012-05-13T13:45:02Z</dc:date>
    </item>
  </channel>
</rss>

