Exemple #1
0
        /// <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));
        }