enter image description here

im facing a problem in converting Floating to Integer Raster by using"spatial analyst tools (arc toolbox) > math > Int" . However, it shows warning of "error ERROR 999998: Unexpected Error. Failed to execute (Int)." * as shown in the attached file * . i've used both raster calculator method and spatial analyst tools in arctoolbox but still failed. how to overcome this problem ?

enter image description here

  • I'm not sure if Arc's Integer raster is a 16-bit short, 32-bit int or 64-bit long, or whether they are signed ints or not, but with that error it's possible that your raster contains values that lie outside the range of possible values. For example, a signed 16-bit int can only hold the values between -32768 and 32767. That's a fairly narrow range! A 32-bit int however can hold a much larger range from -2,147,483,648 to 2,147,483,647. Do you have an incredibly large value in the floating point raster? Oct 28, 2014 at 16:54
  • @WhiteboxDev yes, the value for floating extremely large (example:11.70007324) . is there a way to reduce the floating point? Oct 28, 2014 at 17:08
  • 11.70007324 doesn't sound like that large a value. It fits well within the range of any integer data type. I'm talking about a number that is in the millions or billions (positive or negative). Do you have anything like that? What are your minimum and maximum values in the raster? Oct 28, 2014 at 17:10
  • @WhiteboxDev i really need to convert the floating raster to integer so that i can proceed to the step for conversion of "raster to feature" in spatial analyst. Oct 28, 2014 at 17:10
  • @WhiteboxDev oh, dont have. all the value is within that range of (0-min up to 186.5429993-max) Oct 28, 2014 at 17:12

1 Answer 1


Given your application of vectorizing the raster triangular facets of a slope field derived from a TIN, I would suggest the following alternative workflow. The benefit of this approach is that you will not lose information about the slope of triangular facets through rounding or truncation. I should note that the assumes you have Spatial Analyst. First, use the Region Group tool to assign unique integer ID values to your slope raster. Because your triangular facets are planes, they contain only one value, which will allow this method to work well. Then vectorize the resulting clumped image. Once you've vectorized, you can then add a 'Slope' field to the vector's attribute table using the Zonal statistics tool.

  • ive tried the the steps above , however it shows warning output " failed execution region (group)" . is there something wrong with my spatial analyst toolboxes ? Oct 28, 2014 at 17:45
  • @RaimyHaidar What is the data format of your input raster? What's the file extension? That is not a tool that should fail on such a small raster with so few groups. How large is the raster (rows and columns) and how much RAM does your system have? Oct 28, 2014 at 17:46
  • ( Data type : file system raster , Raster : tingrid2 , source type : continous , pixel type : 32 bit , noData value : -3.4028235e+038 ) ...it is a group of file in the folder of tingrid2 , which it is created from the output of spatial analyst > surface analysis > slope ( which the slope input is the 'tin' file with specified contours ) ....ram of my dekstop is 4gb. im sorry, what u mean by 'how large of raster (rows and columns) " Oct 28, 2014 at 17:55
  • @RaimyHaidar Okay 4GB is really not much. If your raster is larger than about 500Mb this may be the problem. How large is it? Oct 28, 2014 at 17:58
  • it's small. the raster file is 329kb . Oct 28, 2014 at 18:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.