Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 5
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)
 {
     // GeoJSON specification is that longitude is first
     WriteControlPoint(position.Longitude, position.Latitude, position.Z, position.M);
     return(position);
 }
Exemplo n.º 6
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)
 {
     BeginFigure();
     WriteControlPoint(position.Longitude, position.Latitude, position.Z, position.M);
     return(position);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Begin drawing a figure
 /// </summary>
 /// <param name="position">Next position</param>
 public override void BeginFigure(GeographyPosition position)
 {
 }
Exemplo n.º 8
0
 /// <summary>
 /// Draw a point in the specified coordinate
 /// </summary>
 /// <param name="position">Next position</param>
 public override void LineTo(GeographyPosition position)
 {
 }
Exemplo n.º 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);
 }