Example #1
0
 /// <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);
 }
Example #2
0
 /// <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);
 }
Example #3
0
 /// <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);
 }
Example #4
0
 /// <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);
 }
Example #7
0
 /// <summary>
 /// Begin drawing a figure
 /// </summary>
 /// <param name="position">Next position</param>
 public override void BeginFigure(GeographyPosition position)
 {
 }
Example #8
0
 /// <summary>
 /// Draw a point in the specified coordinate
 /// </summary>
 /// <param name="position">Next position</param>
 public override void LineTo(GeographyPosition position)
 {
 }
Example #9
0
 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);
 }