I tried to calculate "Characteristics" on the HecGeoHMS-toolbar. Length of river works fine, but when it comes to calculate river slope i get the messages attached below. As far as i can see this problem is related to the conversion from my floating point DEM-raster to the Double-columns in the "River-file". So, i tried to convert my floatingpoint DEM-raster to an Integer DEM - and then the slope-calculation runs nicely.
My question is then if this is the only solution on this problem - or is it possible to do something else to calculate the slope based on a floating point DEM-raster??
The error codes are:
Computing river slope..
System.InvalidCastException: Konvertering fra strengen 1730.800049 til typen Double er ikke gyldig. ---> System.FormatException: Input string was not in a correct format.
at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
--- End of inner exception stack trace ---
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value)
at ESRI.APWR.HECGeoHMS10.GPRiverSlope.RiverSlopeWk(ApLayers apLayers, Int32 debug, ITrackCancel& trackcancel, IGPMessages& messages, String& exMessage)
Failed to execute (RiverSlope).
Failed at Tue Mar 26 10:52:55 2013 (Elapsed Time: 0.00 seconds)