Euclidean Distance

851
1
03-23-2012 06:46 AM
RA1
by
New Contributor
Hi!

I am trying to use Euclidean Distance on a raster with values 1 and 0, but it gives me as result a empty raster (value 0 only).
Anyone had this problem?

I just want to do exactly what is shown is the help file.
My raster dataset is in 8 bit unsigned, my NoData is 255.

I am working on ArcGIS Desktop 10 Service Pack 3.
0 Kudos
1 Reply
Robert_LeClair
Esri Notable Contributor
This behavior makes sense. If your input for the Euclidean Distance GP tool is a raster with all cell values being 0 and 1's, then these are all valid values.  As a result, there is no cell to cell distance to measure.  What you need to do is determine the cells values to measure from.  For example, let's say you're interested in only the cell value of 1 and not the 0's.  Then you would need to run the Set Null GP tool first to set the zero values to NoData.  The parameters would be as follows:

Input conditional raster:  your input raster
Expression:  Value = 0
Input false raster or constant value:  1
Output raster:  new raster

The output "new raster" will only have values of 1 and NoData.  From there, run the Euclidean Distance on the new raster.  What is the result?  Please advise.

Regards,

Robert LeClair
Esri-Denver
0 Kudos