Click here to get back home

raster max value location within each polygon

 HomeNewsGroups | Search | About
 comp.infosystems.gis    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
raster max value location within each polygon julf 05-05-2006
Get Chitika Premium
Posted by julf on May 5, 2006, 4:15 am
Please log in for more thread options
Hi,
I have a raster (a DEM) and a polygon shapefile. I want to obtain for
each polygon the coordinates of the raster cell containing the maximum
elevation. These coordinates could be either stored as new fields in
the polygon shapefile (e.g. xmax and ymax) or, even better, as a new
point shapefile.
I have ArcGIS, ArcView, openEV, MicroDEM.
Any idea ?


Posted by Paul Cooper on May 5, 2006, 7:03 am
Please log in for more thread options

>Hi,
>I have a raster (a DEM) and a polygon shapefile. I want to obtain for
>each polygon the coordinates of the raster cell containing the maximum
>elevation. These coordinates could be either stored as new fields in
>the polygon shapefile (e.g. xmax and ymax) or, even better, as a new
>point shapefile.
>I have ArcGIS, ArcView, openEV, MicroDEM.
>Any idea ?

Zonal Statistics!

Posted by julf on May 5, 2006, 7:22 am
Please log in for more thread options
Zonal statistics gives me the maximum value within each polygon, but
not the coordinates of this maximum value... Or maybe I did not use the
right tool ?


Posted by Paul Cooper on May 5, 2006, 11:07 am
Please log in for more thread options

>Zonal statistics gives me the maximum value within each polygon, but
>not the coordinates of this maximum value... Or maybe I did not use the
>right tool ?


My fault - I ddn't read your post properly. Zonal statistics will
simply give the maximum value. To get the location, I suppose you
could use CON to select the raster elements with the maximum value,
and then do a raster to point conversion.

Paul

Posted by julf on May 5, 2006, 1:07 pm
Please log in for more thread options
Found the solution with ESRI spatial analyst:

1. Convert polygon shapefile to grid with same resolution as DEM, where
grid value inside each polygon corresponds to the maximum altitude
(calculated previously with Hawth tools). Outside polygons, grid value
will be NoData. Let's call this polygon grid "pol_grid"

2. Enter the two lines below in Raster Calculator (of course, you have
to modify the grid names to correspond to your data). The 1st line
combines pol_grid and the DEM with the "con" operator. For each
polygon, only the cells where the value is equal to the DEM value will
be conserved. In the other case, the value -9999 is assigned. The
second line replaces -9999 with the NoData value. The result is a grid
containing only the value of the polygon highest points. Note that a
single polygon can contain several "highest points" of same altitude.
Here is an example of the two lines entered in Raster Calculator:
----------------------------
[temp] = con([DEM] == [pol_grid], [pol_grid], -9999)
[maxValue] = SetNull([temp] == -9999, [temp])
--------------------------


Similar ThreadsPosted
wanted c / c++ library polygon area pixel counting over raster image September 30, 2005, 9:49 pm
MapInfo Envinsa Location Platform October 16, 2005, 5:56 am
Anything to talk about location based services? July 29, 2005, 5:44 am
Polygon Topology in moving diffrent layers polygon? July 20, 2004, 1:40 pm
Call for Paper: Journal of Location Based Services Special Issue on Neogeography February 11, 2008, 6:05 am
polygon inside another polygon May 10, 2004, 8:35 am
Re: Location Intelligence, the mashup of GIS and Business Intelligence October 21, 2008, 11:17 am
ARC raster to MapINFO - How? November 8, 2005, 9:27 pm
GIS raster formats December 12, 2005, 2:02 pm
HOW TO IMPORT A NEW RASTER MAP? November 14, 2006, 1:16 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap