code: public Coordinate snapToNextHigherInRegionResolution( double x, double y ) {
  
          double minx = getWest();
          double ewres = getXres();
          double xsnap = minx + (Math.ceil((x - minx) / ewres) * ewres);
  
          double miny = getSouth();
          double nsres = getYres();
          double ysnap = miny + (Math.ceil((y - miny) / nsres) * nsres);
  
          return new Coordinate(xsnap, ysnap);
      }
docs: Snaps a geographic point to be on the region grid.
  
  <p>
  Moves the point given by X and Y to be on the grid of the supplied
  region.
  </p>
  
  @param x the easting of the arbitrary point.
  @param y the northing of the arbitrary point.
  @return the snapped coordinate.