Hi Jon, Linda, Yep, it sounds like you're both on the road to grid coverage happiness now :)
Linda: for any desired cell width you can easily calculate the bits you need for the new GridGeometry2D object to pass to the Resample op... double cellSize = ... GridGeometry2D gg = cov.getGridGeometry(); Envelope2D env = gg.getEnvelope2D(); int xDim = (int) (env.getWidth() / cellSize); int yDim = (int) (env.getHeight() / cellSize); GridEnvelope2D newGEnv = new GridEnvelope2D(0, 0, xDim, yDim); GridGeometry2D newGG = new GridGeometry2D(newGEnv, (Envelope)env); Michael ------------------------------------------------------------------------------ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
