/// <summary> /// Initializes a new instance of the GeometryFactory class /// </summary> /// <param name="coordinateSystem">The coordinate system</param> internal GeometryFactory(CoordinateSystem coordinateSystem) { var builder = SpatialBuilder.Create(); this.provider = builder; this.buildChain = SpatialValidator.Create().ChainTo(builder).StartingLink; this.buildChain.SetCoordinateSystem(coordinateSystem); }
/// <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; }
/// <summary>Initializes a new instance of the <see cref="T:Microsoft.Spatial.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; }