cdm/src/main/java/ucar/nc2/dt/grid/GridDatasetInfo.java
private Element writeCoordTransform(CoordinateTransform ct) {
		Element ctElem = new Element("coordTransform");
		ctElem.setAttribute("name", ct.getName());
		ctElem.setAttribute("transformType", ct.getTransformType().toString());
		for (Parameter param : ct.getParameters()) {
			Element pElem = new Element("parameter");
			pElem.setAttribute("name", param.getName());
			pElem.setAttribute("value", param.getStringValue());
			ctElem.addContent(pElem);
		}
		return ctElem;
	}
private Element writeCoordTransform(CoordinateTransform ct) {
		Element ctElem = new Element("coordTransform");
		ctElem.setAttribute("name", ct.getName());
		ctElem.setAttribute("transformType", ct.getTransformType().toString());
		for (Parameter param : ct.getParameters()) {
			Element pElem = new Element("parameter");
			pElem.setAttribute("name", param.getName());
			pElem.setAttribute("value", param.getStringValue());
			ctElem.addContent(pElem);
		}
		return ctElem;
	}
private Element writeCoordTransform ( CoordinateTransform ct ) { Element ctElem = new Element ( "coordTransform" ) ; ctElem . setAttribute ( "name" , ct . getName ( ) ) ; ctElem . setAttribute ( "transformType" , ct . getTransformType ( ) . toString ( ) ) ; for ( Parameter param : ct . getParameters ( ) ) { Element pElem = new Element ( "parameter" ) ; pElem . setAttribute ( "name" , param . getName ( ) ) ; pElem . setAttribute ( "value" , param . getStringValue ( ) ) ; ctElem . addContent ( pElem ) ; } return ctElem ; }
/* private Element writeCoordSys(GridCoordSystem cs) {
Element csElem = new Element("coordSys");
csElem.setAttribute("name", cs.getName());
List axes = cs.getCoordinateAxes();
for (int i = 0; i < axes.size(); i++) {
CoordinateAxis axis = (CoordinateAxis) axes.get(i);
Element axisElem = new Element("axisRef");
axisElem.setAttribute("name", axis.getName());
csElem.addContent(axisElem);
}
List cts = cs.getCoordinateTransforms();
for (int j = 0; j < cts.size(); j++) {
CoordinateTransform ct = (CoordinateTransform) cts.get(j);
Element elem = new Element("coordTransRef");
elem.setAttribute("name", ct.getName());
csElem.addContent(elem);
}
return csElem;
}
/ * private Element writeCoordSys ( GridCoordSystem cs ) { Element csElem = new Element ( coordSys ) ; csElem . setAttribute ( name cs . getName () ) ; List axes = cs . getCoordinateAxes () ; for ( int i = 0 ; i < axes . size () ; i ++ ) { CoordinateAxis axis = ( CoordinateAxis ) axes . get ( i ) ; Element axisElem = new Element ( axisRef ) ; axisElem . setAttribute ( name axis . getName () ) ; csElem . addContent ( axisElem ) ; } List cts = cs . getCoordinateTransforms () ; for ( int j = 0 ; j < cts . size () ; j ++ ) { CoordinateTransform ct = ( CoordinateTransform ) cts . get ( j ) ; Element elem = new Element ( coordTransRef ) ; elem . setAttribute ( name ct . getName () ) ; csElem . addContent ( elem ) ; } return csElem ; }