I keep getting this error when I'm using the 'Predict to raster' Prediction Type in the Forest-based Classification and Regression tool:

'Problem extracting values from a.img using origin location [x,y]'

The given origin location is not on a NoData area, it's value is: Stretch.Pixel Value 0.016262

Is the issue that it's in the ERDAS Imagine format? Should I make it a GRID or .tif? Every raster is defined in the same GCS and the same PCS. Additionally, the data frame is in the same GCS & PCS.

The Forest-based Classification and Regression tool works fine in the 'Train only' Prediction Type mode.

Any help is greatly appreciated.

Image Issue

  • 1
    What is the value of the raster at the given coordinate? It's not a very helpful message, you're left with no idea if it's because the point is off the raster, in a nodata area, outside of the range (1#INF, 1#QNAN etc) or the wrong pixel type (like 64 bit float when 32 bit expected or visa versa). You say your rasters are in the same coordinate system, is that correctly defined on each or undefined? Although being correctly located if the CRS is undefined you can get problems like this; is your data frame in the same CRS? What is the ^ for in c:\^Data? – Michael Stimson Mar 11 '20 at 4:45
  • Thank you for responding, @MichaelStimson, I've edited the post according to your feedback. The ^ is mainly for my folder structure to bring folders to the top. Individual files aren't named with ^'s. Most of things I'm running I've been doing in Modelmaker, so it's not too much of a hassle to run with different conditions, ArcGIS Pro hasn't had any issues with ^'s so far. – booleancube Mar 11 '20 at 13:40
  • Fair enough, I will try that too, I used to use ! to bring the folders to the top but then discovered that in batch files where setlocal ENABLEDELAYEDEXPANSION is used the ! replaces % for the expanded variables so have changed to _ which isn't really the best ~, $, @, * all mean something to some systems so there are limited options. As for your problem I think it's time to contact Esri support as the point is valid and ERDAS Img (GDAL HFA) format it's one of the least prone to bugs and most transferable formats - my format of choice when going between software packages. – Michael Stimson Mar 11 '20 at 23:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.