private float getXEncodedLocation ( float x , GriddedCoverageEncodingType encodingType ) { float xLocation = x ; switch ( encodingType ) { case CENTER : case AREA : xLocation += 0.5f ; break ; case CORNER : break ; default : throw new GeoPackageException ( "Unsupported Encoding Type: " + encodingType ) ; } return xLocation ; }
Get the X encoded location from the base provided x