code: private double[] xyResStringToNumbers( String ewres, String nsres ) {
          double xres = -1.0;
          double yres = -1.0;
          if (ewres.indexOf(':') != -1) {
              xres = degreeToNumber(ewres);
          } else {
              xres = Double.parseDouble(ewres);
          }
          if (nsres.indexOf(':') != -1) {
              yres = degreeToNumber(nsres);
          } else {
              yres = Double.parseDouble(nsres);
          }
  
          return new double[]{xres, yres};
      }
docs: Transforms a GRASS resolution string in metric or degree to decimal.
  
  @param ewres the x resolution string.
  @param nsres the y resolution string.
  @return the array of x and y resolution doubles.