/// <summary> /// Continue drawing a Geography figure /// </summary> /// <param name="position">Next position</param> public override void LineTo(GeographyPosition position) { Util.CheckArgumentNull(position, "position"); DoAction( val => Current.LineTo(val), val => Next.LineTo(val), position); }
/// <summary> /// Begin drawing a Geography figure /// </summary> /// <param name="position">Next position</param> public override void BeginFigure(GeographyPosition position) { Util.CheckArgumentNull(position, "position"); DoAction( val => Current.BeginFigure(val), val => Next.BeginFigure(val), position); }
/// <summary> /// Draw a point in the specified coordinate /// </summary> /// <param name="position">Next position</param> /// <returns>The position to be passed down the pipeline</returns> protected override GeographyPosition OnLineTo(GeographyPosition position) { this.WritePoint(position.Latitude, position.Longitude, position.Z, position.M); return(position); }
/// <summary> /// Begin drawing a figure /// </summary> /// <param name="position">Next position</param> /// <returns>The position to be passed down the pipeline</returns> protected override GeographyPosition OnBeginFigure(GeographyPosition position) { this.BeginFigure(position.Latitude, position.Longitude, position.Z, position.M); return(position); }
/// <summary> /// Draw a point in the specified coordinate /// </summary> /// <param name="position">Next position</param> /// <returns> /// The position to be passed down the pipeline /// </returns> protected override GeographyPosition OnLineTo(GeographyPosition position) { // GeoJSON specification is that longitude is first WriteControlPoint(position.Longitude, position.Latitude, position.Z, position.M); return(position); }
/// <summary> /// Begin drawing a figure /// </summary> /// <param name="position">Next position</param> /// <returns>The position to be passed down the pipeline</returns> protected override GeographyPosition OnBeginFigure(GeographyPosition position) { BeginFigure(); WriteControlPoint(position.Longitude, position.Latitude, position.Z, position.M); return(position); }
/// <summary> /// Begin drawing a figure /// </summary> /// <param name="position">Next position</param> public override void BeginFigure(GeographyPosition position) { }
/// <summary> /// Draw a point in the specified coordinate /// </summary> /// <param name="position">Next position</param> public override void LineTo(GeographyPosition position) { }
public override void BeginFigure(GeographyPosition position) { Debug.Assert(position != null, "ForwardingSegment should have validated nullness"); this.builder.BeginFigure(position.Latitude, position.Longitude, position.Z, position.M); }