question: protected void evaluate ( String filePath ) throws FormatException { try { int latSlash = filePath . lastIndexOf ( "/" ) ; if ( latSlash > 1 ) { if ( DEBUG ) { Debug . output ( "Have lat index of " + latSlash ) ; } String lonSearch = filePath . substring ( 0 , latSlash ) ; if ( DEBUG ) { Debug . output ( "Searching for lon index in " + lonSearch ) ; } int lonSlash = lonSearch . lastIndexOf ( "/" ) ; if ( lonSlash > 1 ) { filename = filePath . substring ( latSlash + 1 ) ; String latString = filename . toUpperCase ( ) ; if ( DEBUG ) { Debug . output ( "have lat " + latString ) ; } int dotIndex = latString . indexOf ( "." ) ; if ( dotIndex > 0 ) { lat = Double . parseDouble ( latString . substring ( 1 , dotIndex ) ) ; if ( latString . charAt ( 0 ) == 'S' ) { lat *= - 1 ; } subDirs = filePath . substring ( lonSlash + 1 , latSlash ) ; String dd = filePath . substring ( 0 , lonSlash + 1 ) ; if ( dd . length ( ) > 0 ) { dtedDir = dd ; } String lonString = subDirs . toUpperCase ( ) ; if ( DEBUG ) { Debug . output ( "have lon " + lonString ) ; } lon = Double . parseDouble ( lonString . substring ( 1 ) ) ; if ( lonString . charAt ( 0 ) == 'W' ) { lon *= - 1 ; } level = ( int ) Integer . parseInt ( filePath . substring ( filePath . length ( ) - 1 ) ) ; if ( DEBUG ) { Debug . output ( "have level " + level ) ; } return ; } } } } catch ( NumberFormatException nfe ) { } throw new FormatException ( "StandardDTEDNameTranslator couldn't convert " + filePath + " to valid parameters" ) ; }
target:  Update all the other settings based on these.