Jump to content

 
Photo

Calculate raster mean value by a vector!

- - - - -

  • Please log in to reply
3 replies to this topic

#1
Covasnianu Adrian

Covasnianu Adrian

    Contributor

  • Validated Member
  • PipPip
  • 48 posts
  • Gender:Male
  • Location:Iasi
  • Romania

Hello!

I want to calculate the mean value of a raster by a vector file.

I have a vector file (containing cells of 250*250 meters each) and I want to find the mean value of the raster by vector specifications. Those values I want to be "connected" to the cells from the vector file.

I've tried through ESRI ArcToolbox with Hawth Tools but the result is general returning the general value of the raster.
Hawth tools returns only some of the results, but not the whole one.

Any ideas?

Sincerely,
Adrian
GIS user

PhD geographer
CUGUAT-TIGRIS Research Center
University Al.I.Cuza Iaşi
Faculty of Geography & Geology

email: covasnianu.adrian@gmail.com

#2
Hans van der Maarel

Hans van der Maarel

    CartoTalk Editor-in-Chief

  • Admin
  • PipPipPipPipPipPipPip
  • 3,868 posts
  • Gender:Male
  • Location:The Netherlands
  • Interests:Cartography, GIS, history, popular science, music.
  • Netherlands

I want to calculate the mean value of a raster by a vector file.

I have a vector file (containing cells of 250*250 meters each) and I want to find the mean value of the raster by vector specifications. Those values I want to be "connected" to the cells from the vector file.

I've tried through ESRI ArcToolbox with Hawth Tools but the result is general returning the general value of the raster.
Hawth tools returns only some of the results, but not the whole one.

Any ideas?


I'd try this in FME. Turn the raster cells into points or areas, then a simple overlay with the vector cells and some list math to get mean values.
Hans van der Maarel - Cartotalk Editor
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics

#3
dsl

dsl

    Master Contributor

  • Validated Member
  • PipPipPipPip
  • 225 posts
  • Gender:Male
  • Location:Denver
  • United States

If you have the spatial analyst extension. The zonal statistics is what you would be looking for. Of course lining up a vector polygon file with a raster cell file will be a accuracy problem. You'll have to look into the ESRI help and see how they handle a cell that crosses multiple boundaries.

Cheers,
David

#4
Covasnianu Adrian

Covasnianu Adrian

    Contributor

  • Validated Member
  • PipPip
  • 48 posts
  • Gender:Male
  • Location:Iasi
  • Romania

It worked!

Thanks David!
GIS user

PhD geographer
CUGUAT-TIGRIS Research Center
University Al.I.Cuza Iaşi
Faculty of Geography & Geology

email: covasnianu.adrian@gmail.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->