/// <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; }
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(); }
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; }
public override void SendTo(GeographyPipeline pipeline) { base.SendTo(pipeline); pipeline.BeginGeography(SpatialType.FullGlobe); pipeline.EndGeography(); }
/// <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)) { }