static public FeatureType getFeatureType ( NetcdfDataset ds , String key , Formatter errlog ) { FeatureType ft = null ; String fts = getLiteral ( ds , key , errlog ) ; if ( fts != null ) { ft = FeatureType . valueOf ( fts . toUpperCase ( ) ) ; if ( ( ft == null ) && ( errlog != null ) ) errlog . format ( " Cant find Feature type %s from %s%n" , fts , key ) ; } return ft ; }
Turn the key into a String and return the corresponding featureType if any .