tds/src/main/java/thredds/server/opendap/NcSDStructure.java
public void serialize(String dataset,DataOutputStream sink,CEEvaluator ce,Object specialO)
                                    throws NoSuchVariableException, DAP2ServerSideException, IOException {

    if (org == null) {
      super.serialize(dataset, sink, ce, specialO);
      return;
    }

    // use the projection info in the original
    java.util.Enumeration vars = org.getVariables();

    // run through each structure member
    StructureMembers sm = sdata.getStructureMembers();

    int count = 0;
    while (vars.hasMoreElements()) {
      HasNetcdfVariable sm_org = (HasNetcdfVariable) vars.nextElement();
      boolean isProjected = ((ServerMethods) sm_org).isProject();
      if (isProjected) {
        StructureMembers.Member m = sm.getMember(count);
        sm_org.serialize( sink, sdata, m);
      }
      count++;
    }

  }
public void serialize(String dataset,DataOutputStream sink,CEEvaluator ce,Object specialO)
                                    throws NoSuchVariableException, DAP2ServerSideException, IOException {

    if (org == null) {
      super.serialize(dataset, sink, ce, specialO);
      return;
    }

    // use the projection info in the original
    java.util.Enumeration vars = org.getVariables();

    // run through each structure member
    StructureMembers sm = sdata.getStructureMembers();

    int count = 0;
    while (vars.hasMoreElements()) {
      HasNetcdfVariable sm_org = (HasNetcdfVariable) vars.nextElement();
      boolean isProjected = ((ServerMethods) sm_org).isProject();
      if (isProjected) {
        StructureMembers.Member m = sm.getMember(count);
        sm_org.serialize( sink, sdata, m);
      }
      count++;
    }

  }
public void serialize ( String dataset , DataOutputStream sink , CEEvaluator ce , Object specialO ) throws NoSuchVariableException , DAP2ServerSideException , IOException { if ( org == null ) { super . serialize ( dataset , sink , ce , specialO ) ; return ; } // use the projection info in the original java . util . Enumeration vars = org . getVariables ( ) ; // run through each structure member StructureMembers sm = sdata . getStructureMembers ( ) ; int count = 0 ; while ( vars . hasMoreElements ( ) ) { HasNetcdfVariable sm_org = ( HasNetcdfVariable ) vars . nextElement ( ) ; boolean isProjected = ( ( ServerMethods ) sm_org ) . isProject ( ) ; if ( isProjected ) { StructureMembers . Member m = sm . getMember ( count ) ; sm_org . serialize ( sink , sdata , m ) ; } count ++ ; } }
overrride for array of Structures
overrride for array of Structures