Re: [otb-users] Zonal stats: updating polygons of a vector file by adding fields computed from a raster

2018-08-10 Thread Guillaume Pasero
Hi, I don't see anything in OTB that does exactly what you need. The approach you propose seems the right one. I see two other ways : Build a new filter using the Sampling framework. You may re-implement the ThreadedGenerateData() to use your

[otb-users] Zonal stats: updating polygons of a vector file by adding fields computed from a raster

2018-08-03 Thread Jordi Inglada
Hi, Given an image (raster) and a vector file containing polygons, I need to compute a series of values for each polygon like the mean of a particular band of the raster, etc. and then produce a new (or update the) vector file with new fields. I think these are called zonal statistics. It