/// <summary> /// Constructs a new axis. /// </summary> /// <param name="name">The name of the axis.</param> /// <param name="ogcOrientationType">The direction of the axis.</param> public OgcAxis(string name, OgcOrientationType ogcOrientationType) { Name = name ?? String.Empty; OgcOrientationType = ogcOrientationType; }
public void Write(OgcOrientationType orientation) { _writer.Write(Options.ToStringRepresentation(orientation)); }
public virtual string ToStringRepresentation(OgcOrientationType orientationType) { Contract.Ensures(!String.IsNullOrEmpty(Contract.Result <string>())); Contract.Assume(!String.IsNullOrEmpty(orientationType.ToString().ToUpperInvariant())); return(orientationType.ToString().ToUpperInvariant()); }