Re: [Geotools-gt2-users] masking raster with vector objects

2009-03-16 Thread Michael Bedward
Hi Martin, OK. I understand much better now :) I'm afraid I don't have an easier solution right now. > I will have a look at the KernelFactory.createFromShape that sounds > promissing. I did not see this function in the documentation > (http://code.google.com/p/jai-tools/wiki/KernelFactory), Y

Re: [Geotools-gt2-users] masking raster with vector objects

2009-03-16 Thread Martin Tomko
Hi Michael, indeed, Steve's code is what I would use for rasterization. What I need to do is to select objects in a vector dataset by their spatial overlap with a specific class of cells. For instance, if a specific polygon is spatially overlapping cells with a specific landcover type... The way

Re: [Geotools-gt2-users] masking raster with vector objects

2009-03-16 Thread Michael Bedward
Hi Martin, I don't know of a GeoTools method to do this, although if we're lucky someone here will tell us about one :) Regarding jai-tools - I can tell you if what you want is on the current list of things to do, well my list anyway, but first I'd need more detail about what it is that you want

[Geotools-gt2-users] masking raster with vector objects

2009-03-16 Thread Martin Tomko
Dear all, are there any convenience methods or did anyone mask rasters (grid coverages) with, say, polygons? I need to select cells overlapping (and possibly other kinds of relationships) with a given object. I can do it through rasterization of the object, comparison of cell values and consec