On Mon, Dec 20, 2010 at 11:48 PM, Michael Bedward
<[email protected]> wrote:
> Hi Ian,
>
> I do this...
>
> public GridCoverage2D createCoverage(double[][] data, String name,
> Envelope env) {
>    int width = data[0].length;
>    int height = data.length;
>    WritableRaster raster =
> RasterFactory.createBandedRaster(DataBuffer.TYPE_DOUBLE, width,
> height, 1, null);
>
>    for (int y = 0; y < height; y++) {
>        for (int x = 0; x < width; x++) {
>            raster.setSample(x, y, 0, data[y][x]);
>        }
>    }
>

That's the sort of thing I was trying, is there a way to do this with
world x,y coords instead of image coords?

Ian

-- 
Ian Turton

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to