public override void SendTo(GeometryPipeline pipeline)
 {
     base.SendTo(pipeline);
     pipeline.BeginGeometry(SpatialType.LineString);
     this.SendFigure(pipeline);
     pipeline.EndGeometry();
 }
 public override void SendTo(GeometryPipeline pipeline)
 {
     base.SendTo(pipeline);
     pipeline.BeginGeometry(SpatialType.MultiLineString);
     for (int i = 0; i < this.lineStrings.Length; i++)
     {
         this.lineStrings[i].SendTo(pipeline);
     }
     pipeline.EndGeometry();
 }
 public override void SendTo(GeometryPipeline pipeline)
 {
     base.SendTo(pipeline);
     pipeline.BeginGeometry(SpatialType.Polygon);
     for (int i = 0; i < this.rings.Length; i++)
     {
         this.rings[i].SendFigure(pipeline);
     }
     pipeline.EndGeometry();
 }
 public override void SendTo(GeometryPipeline pipeline)
 {
     base.SendTo(pipeline);
     pipeline.BeginGeometry(SpatialType.Collection);
     for (int i = 0; i < this.geometryArray.Length; i++)
     {
         this.geometryArray[i].SendTo(pipeline);
     }
     pipeline.EndGeometry();
 }
        public override void SendTo(GeometryPipeline pipeline)
        {
            base.SendTo(pipeline);
            pipeline.BeginGeometry(SpatialType.MultiPolygon);
            for (int i = 0; i < this.polygons.Length; ++i)
            {
                this.polygons[i].SendTo(pipeline);
            }

            pipeline.EndGeometry();
        }
 public override void SendTo(GeometryPipeline pipeline)
 {
     base.SendTo(pipeline);
     pipeline.BeginGeometry(SpatialType.Point);
     if (!this.IsEmpty)
     {
         pipeline.BeginFigure(new GeometryPosition(this.x, this.y, this.z, this.m));
         pipeline.EndFigure();
     }
     pipeline.EndGeometry();
 }
示例#7
0
        public static GeometryPoint Create(CoordinateSystem coordinateSystem, double x, double y, double?z, double?m)
        {
            SpatialBuilder   builder          = SpatialBuilder.Create();
            GeometryPipeline geometryPipeline = builder.GeometryPipeline;

            geometryPipeline.SetCoordinateSystem(coordinateSystem);
            geometryPipeline.BeginGeometry(SpatialType.Point);
            geometryPipeline.BeginFigure(new GeometryPosition(x, y, z, m));
            geometryPipeline.EndFigure();
            geometryPipeline.EndGeometry();
            return((GeometryPoint)builder.ConstructedGeometry);
        }
示例#8
0
 internal static void SendFigure(this GeometryLineString GeometryLineString, GeometryPipeline pipeline)
 {
     Util.CheckArgumentNull(GeometryLineString, "GeometryLineString");
     for (int i = 0; i < GeometryLineString.Points.Count; i++)
     {
         GeometryPoint point = GeometryLineString.Points[i];
         GeometryPosition position = new GeometryPosition(point.X, point.Y, point.Z, point.M);
         if (i == 0)
         {
             pipeline.BeginFigure(position);
         }
         else
         {
             pipeline.LineTo(position);
         }
     }
     if (GeometryLineString.Points.Count > 0)
     {
         pipeline.EndFigure();
     }
 }
示例#9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SpatialBuilder"/> class.
 /// </summary>
 /// <param name="geographyInput">The geography input.</param>
 /// <param name="geometryInput">The geometry input.</param>
 /// <param name="geographyOutput">The geography output.</param>
 /// <param name="geometryOutput">The geometry output.</param>
 public SpatialBuilder(GeographyPipeline geographyInput, GeometryPipeline geometryInput, IGeographyProvider geographyOutput, IGeometryProvider geometryOutput)
     : base(geographyInput, geometryInput)
 {
     this.geographyOutput = geographyOutput;
     this.geometryOutput  = geometryOutput;
 }
示例#10
0
文件: Geometry.cs 项目: tapika/swupd
 /// <summary>Sends the current spatial object to the given pipeline.</summary>
 /// <param name="chain">The spatial pipeline.</param>
 public virtual void SendTo(GeometryPipeline chain)
 {
     Util.CheckArgumentNull(chain, "chain");
     chain.SetCoordinateSystem(this.coordinateSystem);
 }
示例#11
0
 public SpatialBuilder(GeographyPipeline geographyInput, GeometryPipeline geometryInput, IGeographyProvider geographyOutput, IGeometryProvider geometryOutput) : base(geographyInput, geometryInput)
 {
     this.geographyOutput = geographyOutput;
     this.geometryOutput = geometryOutput;
 }
 public TypeWashedToGeometryPipeline(SpatialPipeline output)
 {
     this.output = (GeometryPipeline) output;
 }
示例#13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SpatialPipeline"/> class.
 /// </summary>
 /// <param name="geographyPipeline">The geography chain.</param>
 /// <param name="geometryPipeline">The geometry chain.</param>
 public SpatialPipeline(GeographyPipeline geographyPipeline, GeometryPipeline geometryPipeline)
 {
     this.geographyPipeline = geographyPipeline;
     this.geometryPipeline = geometryPipeline;
     this.startingLink = this;
 }
示例#14
0
文件: Geometry.cs 项目: nickchal/pash
 public virtual void SendTo(GeometryPipeline chain)
 {
     Util.CheckArgumentNull(chain, "chain");
     chain.SetCoordinateSystem(this.coordinateSystem);
 }
示例#15
0
 public ForwardingSegment(System.Spatial.GeographyPipeline currentGeography, System.Spatial.GeometryPipeline currentGeometry) : this(new SpatialPipeline(currentGeography, currentGeometry))
 {
 }
示例#16
0
 /// <summary> Initializes a new instance of the <see cref="T:System.Spatial.SpatialPipeline" /> class. </summary>
 /// <param name="geographyPipeline">The geography chain.</param>
 /// <param name="geometryPipeline">The geometry chain.</param>
 public SpatialPipeline(GeographyPipeline geographyPipeline, GeometryPipeline geometryPipeline)
 {
     this.geographyPipeline = geographyPipeline;
     this.geometryPipeline  = geometryPipeline;
     this.startingLink      = this;
 }