Re: [Geotools-gt2-users] GeoTiff grid raster date and value within circle

2018-03-19 Thread Andrea Aime
On Mon, Mar 19, 2018 at 1:23 PM, Peter wrote: > Dear Andrea, > > thank you for the idea. > > Would it also be a good idea to convert my grid raster data to a shape > file and then use some of the vector-based analysis functions? > Personally I would not do it, unless you have troubles with the a

Re: [Geotools-gt2-users] GeoTiff grid raster date and value within circle

2018-03-19 Thread Peter
Dear Andrea, thank you for the idea. Would it also be a good idea to convert my grid raster data to a shape file and then use some of the vector-based analysis functions? Peter On 19/03/18 10:36, Andrea Aime wrote: > Hi Peter, > I believe something like that should be doable by using > the Ras

Re: [Geotools-gt2-users] GeoTiff grid raster date and value within circle

2018-03-19 Thread Andrea Aime
Hi Peter, I believe something like that should be doable by using the RasterZonalStatistics process class, in the (unsupported, but not too much) gt-process-raster module. You'll have to compute the polygon area yourself, if you're in projected coordinates you can just buffer a point, otherwise you

[Geotools-gt2-users] GeoTiff grid raster date and value within circle

2018-03-19 Thread Peter
Dear List Members, I am completely new to geotools. I have gridded raster data (population) in a GeoTiff. I can get the grid value for a certain longitude/latitude with geotools. Fine. But how can I get the summarized value of all grid cells within a given distance around a given point ? (I