Example #1
0
 /// <summary>
 /// Creates a new instance of the GeographyLoggingPipeline.
 /// </summary>
 /// <param name="reverseCoordinates">
 /// True if calls to BeginFigure and AddLine should reverse the first two coordinates before logging the call.
 /// </param>
 public GeographyLoggingPipeline(bool reverseCoordinates)
 {
     this.reverseCoordinates = reverseCoordinates;
     this.pipeline = new CallSequenceLoggingPipeline();
     this.drawGeography = pipeline;
 }
Example #2
0
        public static void DrawLine(GeographyPipeline pipeline, PositionData[] line)
        {
            for (int i = 0; i < line.Length; ++i)
            {
                if (i == 0)
                {
                    pipeline.BeginFigure(new GeographyPosition(line[i].X, line[i].Y, line[i].Z, line[i].M));
                }
                else
                {
                    pipeline.LineTo(new GeographyPosition(line[i].X, line[i].Y, line[i].Z, line[i].M));
                }
            }

            pipeline.EndFigure();
        }
Example #3
0
 public static void DrawPoint(GeographyPipeline pipeline, PositionData point)
 {
     pipeline.BeginFigure(new GeographyPosition(point.X, point.Y, point.Z, point.M));
     pipeline.EndFigure();
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="output">The pipeline to redirect the calls to</param>
 public TypeWashedToGeographyLatLongPipeline(SpatialPipeline output)
 {
     this.output = output;
 }
Example #5
0
 public static void DrawPoint(GeographyPipeline pipeline, PositionData point)
 {
     pipeline.BeginFigure(new GeographyPosition(point.X, point.Y, point.Z, point.M));
     pipeline.EndFigure();
 }
 public override void SendTo(GeographyPipeline pipeline)
 {
     base.SendTo(pipeline);
     pipeline.BeginGeography(SpatialType.FullGlobe);
     pipeline.EndGeography();
 }
Example #7
0
 /// <summary>
 /// Creates a new instance of the GeographyLoggingPipeline.
 /// </summary>
 /// <param name="reverseCoordinates">
 /// True if calls to BeginFigure and AddLine should reverse the first two coordinates before logging the call.
 /// </param>
 public GeographyLoggingPipeline(bool reverseCoordinates)
 {
     this.reverseCoordinates = reverseCoordinates;
     this.pipeline           = new CallSequenceLoggingPipeline();
     this.drawGeography      = pipeline;
 }
Example #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ForwardingSegment"/> class.
 /// </summary>
 /// <param name="currentGeography">The current geography.</param>
 /// <param name="currentGeometry">The current geometry.</param>
 public ForwardingSegment(GeographyPipeline currentGeography, GeometryPipeline currentGeometry)
     : this(new SpatialPipeline(currentGeography, currentGeometry))
 {
 }