cdm/src/main/java/ucar/unidata/geoloc/ogc/WKTParser.java
private void parseGeogcs() throws ParseException {
    eatLiteral("GEOGCS[");
    geogcsName = eatString();
    for (; ; ) {
      char t = getChar();
      if (t == ']') {
        break;
      } else if (t != ',') {
        throw new ParseException("expected , or ]", position);
      } else {
        String term = eatTerm();
        if ("DATUM".equals(term)) {
          eatDatum();
        } else if ("PRIMEM".equals(term)) {
          eatPrimem();
        } else if ("UNIT".equals(term)) {
          eatUnit();
        }
      }
    }
  }
private void parseGeogcs() throws ParseException {
    eatLiteral("GEOGCS[");
    geogcsName = eatString();
    for (; ; ) {
      char t = getChar();
      if (t == ']') {
        break;
      } else if (t != ',') {
        throw new ParseException("expected , or ]", position);
      } else {
        String term = eatTerm();
        if ("DATUM".equals(term)) {
          eatDatum();
        } else if ("PRIMEM".equals(term)) {
          eatPrimem();
        } else if ("UNIT".equals(term)) {
          eatUnit();
        }
      }
    }
  }
private void parseGeogcs ( ) throws ParseException { eatLiteral ( "GEOGCS[" ) ; geogcsName = eatString ( ) ; for ( ; ; ) { char t = getChar ( ) ; if ( t == ' ' ) { break ; } else if ( t != ' ' ) { throw new ParseException ( "expected , or ]" , position ) ; } else { String term = eatTerm ( ) ; if ( "DATUM" . equals ( term ) ) { eatDatum ( ) ; } else if ( "PRIMEM" . equals ( term ) ) { eatPrimem ( ) ; } else if ( "UNIT" . equals ( term ) ) { eatUnit ( ) ; } } } }
_more_

@throws ParseException _more_
_more_