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.
Please post a copy of your input file that your are passing into TopoToRasterByFile.
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
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?
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
and
if you paste this path and filename into TopoToRaster, does it work?