Select to view content in your preferred language

Assign raster values to polygon feaures

6908
2
01-17-2013 06:32 AM
KarinHenrikson
Deactivated User
Hi,

I have a vector layer with buildings as polygons. I have a DEM in raster, cell size 5 m. I would like to calculate the max and min values of the raster for each polygon and populate the attribute table with these values.  I know this can be made from the "zonal statistcs as table". This worked fine, until I realized that the tool first converts my polygon to rasters before calcultaing the numbers. That makes that parts of the buildings wont be represented and the values will be wrong. I want all parts of the building to be counted for! See the quoted text from the help below:


[INDENT]If the zone input is a feature dataset with relatively small features, keep in mind that the resolution of the information needs to be appropriate relative to the resolution of the value raster. If the areas of single features are similar to or smaller than the area of single cells in the value raster, in the feature-to-raster conversion some of these zones may not be represented.[/INDENT]


Is there any way, without altering the resolution of the ratser dataset to make this operation?

Greatful for any help!

/Karin Henrikson


ps. I also tried a tool in Xtools Pro with the same result.
0 Kudos
2 Replies
RamB
by
Frequent Contributor
Hallo,

I would convert the raster to a point file. Then use spatial join. During spatial join, for the first time I will use the Min value of the attribute and second time use the Max value of the attribute. And later bring them together into one table.

regards,
0 Kudos
toddsams
Deactivated User
You could convert the DEM to a polygon (uncheck simplify polygons) and apply the intersect tool between the two vector layers. Each building polygon will be attributed with the polygon-based DEM values that overlap, even the smallest overlapping sliver polygons will be picked up.
0 Kudos