public static Coordinate rowColToCenterCoordinates( Window active, int row, int col ) {

        double north = active.getNorth();
        double west = active.getWest();
        double nsres = active.getNSResolution();
        double ewres = active.getWEResolution();

        double northing = north - row * nsres - nsres / 2.0;
        double easting = west + col * ewres + ewres / 2.0;

        return new Coordinate(easting, northing);
    }
public static Coordinate rowColToCenterCoordinates ( Window active , int row , int col ) { double north = active . getNorth ( ) ; double west = active . getWest ( ) ; double nsres = active . getNSResolution ( ) ; double ewres = active . getWEResolution ( ) ; double northing = north - row * nsres - nsres / 2.0 ; double easting = west + col * ewres + ewres / 2.0 ; return new Coordinate ( easting , northing ) ; }
<p>
Transforms row and column index of the active region into the regarding northing and easting
coordinates. The center of the cell is taken.
</p>
<p>
NOTE: basically the inverse of
{@link GrassLegacyUtilities#coordinateToNearestRowCol(Window, Coordinate)}
</p>

@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 point in N/E coordinates of the supplied row and column