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