Extract maximum values from raster by polygons

13056
2
Jump to solution
11-15-2013 12:51 PM
toddsams
New Contributor III
I have a continuous raster and a set of polygons that overlap the raster.

Does anyone know of a method to:

1) identify the maximum value of the raster within each polygon
2) extract the cells associated with these maximum values and store as a separate raster (or points)

Any suggestions are greatly appreciated.
0 Kudos
1 Solution

Accepted Solutions
XanderBakker
Esri Esteemed Contributor
I have a continuous raster and a set of polygons that overlap the raster.

Does anyone know of a method to:

1) identify the maximum value of the raster within each polygon
2) extract the cells associated with these maximum values and store as a separate raster (or points)

Any suggestions are greatly appreciated.


Hi Todd,

Try this:

  • Perform a Zonal Statistics (using the polygons as zones, the raster as values and MAXIMUM as stistics type)

  • Calculate a boolean raster with: ValueRas = MaxRas (value 1 will indicate those pixels locations with maximum value in polygon)

  • Use the SetNull to obtain a raster holding only the maximum values at the locations you're interested in and rest NoData: OutRas =  SetNull(BooleanRas, MaxRast, "Value = 0")

  • Convert this "OutRas" to points

Kind regards,

Xander

View solution in original post

0 Kudos
2 Replies
XanderBakker
Esri Esteemed Contributor
I have a continuous raster and a set of polygons that overlap the raster.

Does anyone know of a method to:

1) identify the maximum value of the raster within each polygon
2) extract the cells associated with these maximum values and store as a separate raster (or points)

Any suggestions are greatly appreciated.


Hi Todd,

Try this:

  • Perform a Zonal Statistics (using the polygons as zones, the raster as values and MAXIMUM as stistics type)

  • Calculate a boolean raster with: ValueRas = MaxRas (value 1 will indicate those pixels locations with maximum value in polygon)

  • Use the SetNull to obtain a raster holding only the maximum values at the locations you're interested in and rest NoData: OutRas =  SetNull(BooleanRas, MaxRast, "Value = 0")

  • Convert this "OutRas" to points

Kind regards,

Xander
0 Kudos
FatihDur
New Contributor II

Just for the references, there is a step-by-step guide to very same process in How To: Create points representing the highest or lowest elevations within polygon features