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