Topo To Raster By File- Invalid Feature Class

3198
13
01-13-2011 11:46 AM
DaveJohnson
New Contributor II
I am trying to reuse the output .txt parameter file from Topo To Raster in Topo To Raster By File.  This txt was generated by the GP Tool itself. 

Problem is: When I attempt to use this txt as the input parameter file for 'Topo To Raster By File' I get the following error:
ERROR 010134: Input does not contain a feature class.  That's the extent of the error message, so I've turned to the forums. 

I'm at 9.3.1. 

Here is an example of the input txt file:

POINT C:\Data\DEM\Test11.gdb\PntFC3720452300WC20050817 Z
POINT C:\Data\DEM\Test11.gdb\PntFC3720452400WC20050817 Z
POINT C:\Data\DEM\Test11.gdb\PntFC3720453300WC20050817 Z
POINT C:\Data\DEM\Test11.gdb\PntFC3720453400WC20050817 Z
ENFORCE ON
DATATYPE CONTOUR
ITERATIONS 40
ROUGHNESS_PENALTY 0.25000000000
DISCRETE_ERROR_FACTOR 1.00000000000
VERTICAL_STANDARD_ERROR 0.25000000000
TOLERANCES 2.50000000000 100.00000000000
CELL_SIZE 20.00000000000
MARGIN 20

Any help on this issue?  Have a feeling it's the auto-generated syntax in the txt file.  Have no issue running the Topo To Raster tool, but I'm working to create this with Python as part of a bigger routine and this is causing severe delay.  Ironically the help on these two tools says using this txt input parameter file is supposed to be 'easier'... Before I start in on that... is (are) my FC name(s) too long?  Will be checking while awaiting replies. 

Thanks, DJ
13 Replies
SteveLynch
Esri Regular Contributor

I've only seen now that you're not running it as a GP.

Please try running the geoprocessing tool and supply the .asc file as input.

ChandarbhanBairagi
New Contributor II

Thanks, It's working fine.

0 Kudos
GregorySlutz
New Contributor II
I was getting the same error with ArcGIS 10.0 SP 4. I exported my File GDB FC to a SHP file and still got the error. The path name to both the GDB and the SHP file had spaces. I copied the SHP file to a location with no spaces in the path and Topo to Raster By File worked. Since ArcGIS has been reading my paths with spaces OK, it must be the spaces in the text file parameter casuing the problem.
0 Kudos
SteveLynch
Esri Regular Contributor
Gregory


There is a problem with the way that TopoToRasterByFile treats paths and feature class names that have spaces.

Here is the "bug" number for future reference.
NIM080744 TopoToRasterByFile throws ERROR 010134 Input does not contain a feature class. when the path to an input feature class has a space or input feature class name has a space.

Sorry for the inconvenience.

Steve
0 Kudos