/** * Get the min, max, and offset of the source Y pixel * * @param source * source y pixel * @return source y pixel information */ protected CoverageDataSourcePixel getYSourceMinAndMax(float source) { int floor = (int) Math.floor(source); float valueLocation = getYEncodedLocation(floor, griddedCoverage.getGridCellEncodingType()); CoverageDataSourcePixel pixel = getSourceMinAndMax(source, floor, valueLocation); return pixel; }
/** * Get the min, max, and offset of the source X pixel * * @param source * source x pixel * @return source x pixel information */ protected CoverageDataSourcePixel getXSourceMinAndMax(float source) { int floor = (int) Math.floor(source); float valueLocation = getXEncodedLocation(floor, griddedCoverage.getGridCellEncodingType()); CoverageDataSourcePixel pixel = getSourceMinAndMax(source, floor, valueLocation); return pixel; }