Contains static methods for formatting data for writing to a Cesium stream.
Exemple #1
0
 /// <summary>
 /// Writes a <see cref="TimeInterval"/> as an ISO 8601 interval string.
 /// </summary>
 /// <param name="output">The stream to which to write the value.</param>
 /// <param name="interval">The interval to write.</param>
 public static void WriteTimeInterval(CesiumOutputStream output, TimeInterval interval)
 {
     output.WriteValue(CesiumFormattingHelper.ToIso8601Interval(interval.Start, interval.Stop, output.PrettyFormatting ? Iso8601Format.Extended : Iso8601Format.Compact));
 }
 /// <summary>
 /// Writes the actual interval of time covered by this <topic name="Cesium">Cesium</topic> interval.
 /// </summary>
 /// <param name="interval">The interval.</param>
 public void WriteInterval(TimeInterval interval)
 {
     OpenIntervalIfNecessary();
     Output.WritePropertyName("interval");
     Output.WriteValue(CesiumFormattingHelper.ToIso8601Interval(interval.Start, interval.Stop, Output.PrettyFormatting ? Iso8601Format.Extended : Iso8601Format.Compact));
 }
Exemple #3
0
 /// <summary>
 /// Writes a <see cref="JulianDate"/> as an ISO 8601 interval string.
 /// </summary>
 /// <param name="output">The stream to which to write the value.</param>
 /// <param name="date">The date to write.</param>
 public static void WriteDate(CesiumOutputStream output, JulianDate date)
 {
     output.WriteValue(CesiumFormattingHelper.ToIso8601(date, output.PrettyFormatting ? Iso8601Format.Extended : Iso8601Format.Compact));
 }