public static double[] rowColToNodeboundCoordinates( Window active, int row, int col ) {

        double anorth = active.getNorth();
        double awest = active.getWest();
        double nsres = active.getNSResolution();
        double ewres = active.getWEResolution();

        double[] nsew = new double[4];
        nsew[0] = anorth - row * nsres;
        nsew[1] = anorth - row * nsres - nsres;
        nsew[2] = awest + col * ewres + ewres;
        nsew[3] = awest + col * ewres;

        return nsew;
    }
public static double [ ] rowColToNodeboundCoordinates ( Window active , int row , int col ) { double anorth = active . getNorth ( ) ; double awest = active . getWest ( ) ; double nsres = active . getNSResolution ( ) ; double ewres = active . getWEResolution ( ) ; double [ ] nsew = new double [ 4 ] ; nsew [ 0 ] = anorth - row * nsres ; nsew [ 1 ] = anorth - row * nsres - nsres ; nsew [ 2 ] = awest + col * ewres + ewres ; nsew [ 3 ] = awest + col * ewres ; return nsew ; }
Transforms row and column index of the active region into an array of the coordinates of the
edgaes, i.e. n, s, e, w

@param active - the active region (can be null)
@param row - row number of the point to transform
@param col - column number of the point to transform
@return the array of north, south, east, west