Yes - sorry about that last post where I referred you to the RasterToVectorProcess class - my brain was in reverse :-(
The class you want is, of course, VectorToRasterProcess and its static helper method: process. Here is an example... FeatureCollection<SimpleFeatureType, SimpleFeature> features = ... // name of the feature attribute from which raster cell values will be taken String valueAttr = ... // bounds of the output grid coverage in world coords ReferencedEnvelope bounds = ... // dimensions of the output grid coverage (cols, rows) Dimension gridDim = ... // name of the output grid coverage String covName = ... GridCoverage2D cov = VectorToRasterProcess.process(features, valueAttr, gridDim, bounds, covName, null); I'm afraid I can only really help you with GeoTools 2.6 - sorry about that. Michael ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
