Topo To Raster By File- Invalid Feature Class

3141
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
MichaelStead
Occasional Contributor III
Not sure about your question, but you should be using spot or point or whatever the other option is in topo to raster unless your input files are lines named with the prefix "pnt..." (in the datatype field)
0 Kudos
DanielShaffer
New Contributor III
Hi, David!

Did you ever resolve this?  Was the problem the "Contour" data type that you had specified?  I have found that if I use shapefiles, the tool appears to run but crashes right at the end...apparently when it is attempting to write out the file.

Could sure use some help if you have some to give.

Thanks!

Dan Shaffer
0 Kudos
SteveLynch
Esri Regular Contributor
DJ

This is a bug in 9.3 and 9.3.1
It is fixed in version 10.

A work around woud be to have your feature data in a shapefile rather than a file geodatabase, viz.,
POINT C:\Data\DEM\PntFC3720452300WC20050817.shp Z
POINT C:\Data\DEM\PntFC3720452400WC20050817.shp Z
...


Sorry for the inconvenience

Steve Lynch
ESRI
ChandarbhanBairagi
New Contributor II

Dear Steve Lynch,

I am also got the same error in 10.5 & 10.5.1 version, but same code work in 10.2, please suggest updated version where successfully work Topo To Raster By File.

0 Kudos
SteveLynch
Esri Regular Contributor

Please post a copy of your input file that your are passing into TopoToRasterByFile.

0 Kudos
ChandarbhanBairagi
New Contributor II

POINT C:\imd\StormDesign\Shape File\oneday\Storm1924_07_25.shp Rain_mm
ENFORCE ON
DATATYPE SPOT
ITERATIONS 20
ROUGHNESS_PENALTY 0.5
PROFILE_PENALTY 0
DISCRETE_ERROR_FACTOR 1
VERTICAL_STANDARD_ERROR 0
TOLERANCES 1 200
EXTENT 73.6862502421338 10.5387502179194 79.5412502421338 16.5029168845861
CELL_SIZE 0.00608
MARGIN 20

This is the file content and the file extension is .ASC

0 Kudos
SteveLynch
Esri Regular Contributor

Please

- try it using a path and filename without spaces

- if you paste this path and filename into TopoToRaster, does it work?

- what is the exact error?

0 Kudos
ChandarbhanBairagi
New Contributor II

Dear Sir,

When i try the same in Topo to Raster by File in 10.5.1 without space, then i got a error as following :

L-Error - Message    :

System.Runtime.InteropServices.COMException (0x80041098): ERROR 010092: Invalid output extent.
   at ESRI.ArcGIS.GeoAnalyst.IInterpolationOp3.TopoToRasterByFile(String paramFile, IFeatureClass& outStream, IFeatureClass& outSink)
   at Storm_design.frmDesignStorm.tptoRContour2(String inparam, String pointpath, String pointfield, Double dInterval, Double[] extent) in c:\.............cs:line 11784

Please find the attached file.

Please help on this,

Thanks for support

0 Kudos
SteveLynch
Esri Regular Contributor

and 

 if you paste this path and filename into TopoToRaster, does it work?

0 Kudos