/** * Returns the vertical datum type that matches the given string, or returns a new one if none * match it. * * @param code The name of the code to fetch or to create. * @return A code matching the given name. */ public static VerticalDatumType valueOf(String code) { return valueOf(VerticalDatumType.class, code); } }
.getDatumFactory() .createVerticalDatum( datumMap, VerticalDatumType.valueOf(v_datumType));
/** * Returns the vertical datum type that matches the given string, or returns a * new one if none match it. More specifically, this methods returns the first instance for * which <code>{@linkplain #name() name()}.{@linkplain String#equals equals}(code)</code> * returns {@code true}. If no existing instance is found, then a new one is created for * the given name. * * @param code the name of the code to fetch or to create. * @return a code matching the given name. */ public static VerticalDatumType valueOf(String code) { return valueOf(VerticalDatumType.class, code); } }
/** * Returns the vertical datum type that matches the given string, or returns a * new one if none match it. More specifically, this methods returns the first instance for * which <code>{@linkplain #name() name()}.{@linkplain String#equals equals}(code)</code> * returns {@code true}. If no existing instance is found, then a new one is created for * the given name. * * @param code the name of the code to fetch or to create. * @return a code matching the given name. */ public static VerticalDatumType valueOf(String code) { return valueOf(VerticalDatumType.class, code); } }
/** * Wraps the given coordinate system. */ Vertical(final CoordinateSystem cs, final CoordinateAxis netcdfAxis) { super(cs, Collections.singletonList(netcdfAxis)); switch (netcdfAxis.getAxisType()) { case Pressure: type = VerticalDatumType.BAROMETRIC; break; case Height: type = VerticalDatumType.GEOIDAL; break; case GeoZ: type = VerticalDatumType.valueOf("ELLIPSOIDAL"); break; default: type = VerticalDatumType.OTHER_SURFACE; break; } }
VerticalDatumType.valueOf(v_datumType));
.getDatumFactory() .createVerticalDatum( datumMap, VerticalDatumType.valueOf(v_datumType));
object = new DefaultVerticalDatum(properties(datum), VerticalDatumType.valueOf(name()));
object = new DefaultVerticalDatum(properties(datum), VerticalDatumType.valueOf(name()));