/// <summary> /// Creates a SpatialBuilder for this implemenation /// </summary> /// <returns> /// The SpatialBuilder created. /// </returns> public override SpatialBuilder CreateBuilder() { var geography = new GeographyBuilderImplementation(this); var geometry = new GeometryBuilderImplementation(this); var input = new ForwardingSegment(geography, geometry); return new SpatialBuilder(input, input, geography, geometry); }
public override SpatialBuilder CreateBuilder() { GeographyBuilderImplementation currentGeography = new GeographyBuilderImplementation(this); GeometryBuilderImplementation currentGeometry = new GeometryBuilderImplementation(this); ForwardingSegment segment = new ForwardingSegment(currentGeography, currentGeometry); return new SpatialBuilder((GeographyPipeline) segment, (GeometryPipeline) segment, currentGeography, currentGeometry); }
public GeographyBuilderImplementationTests() { this.creator = new DataServicesSpatialImplementation(); this.builder = new GeographyBuilderImplementation(this.creator); this.builder.SetCoordinateSystem(CoordinateSystem.DefaultGeography); this.constructedInstances = new List<Geography>(); this.builder.ProduceGeography += this.constructedInstances.Add; }
public void TestInitialize() { this.creator = new DataServicesSpatialImplementation(); this.builder = new GeographyBuilderImplementation(this.creator); this.builder.SetCoordinateSystem(CoordinateSystem.DefaultGeography); this.constructedInstances = new List <Geography>(); this.builder.ProduceGeography += this.constructedInstances.Add; }
/// <summary> /// Creates a SpatialBuilder for this implemenation /// </summary> /// <returns> /// The SpatialBuilder created. /// </returns> public override SpatialBuilder CreateBuilder() { var geography = new GeographyBuilderImplementation(this); var geometry = new GeometryBuilderImplementation(this); var input = new ForwardingSegment(geography, geometry); return(new SpatialBuilder(input, input, geography, geometry)); }
private static Geography EmptyGeography(SpatialType type) { var b = new GeographyBuilderImplementation(implementation); b.SetCoordinateSystem(CoordinateSystem.DefaultGeography); b.BeginGeography(type); b.EndGeography(); return(b.ConstructedGeography); }
private static Geography EmptyGeography(SpatialType type) { var b = new GeographyBuilderImplementation(implementation); b.SetCoordinateSystem(CoordinateSystem.DefaultGeography); b.BeginGeography(type); b.EndGeography(); return b.ConstructedGeography; }