示例#1
0
        protected KeyValuePair <SpatialPipeline, IShapeProvider> MakeValidatingBuilder()
        {
            SpatialBuilder  destination = this.creator.CreateBuilder();
            SpatialPipeline key         = this.creator.CreateValidator();

            key.ChainTo(destination);
            return(new KeyValuePair <SpatialPipeline, IShapeProvider>(key, destination));
        }
示例#2
0
        public static GeometryPoint Create(CoordinateSystem coordinateSystem, double x, double y, double?z, double?m)
        {
            var builder  = SpatialBuilder.Create();
            var pipeline = builder.GeometryPipeline;

            pipeline.SetCoordinateSystem(coordinateSystem);
            pipeline.BeginGeometry(SpatialType.Point);
            pipeline.BeginFigure(new GeometryPosition(x, y, z, m));
            pipeline.EndFigure();
            pipeline.EndGeometry();
            return((GeometryPoint)builder.ConstructedGeometry);
        }
示例#3
0
        public static GeographyPoint Create(CoordinateSystem coordinateSystem, double latitude, double longitude, double?z, double?m)
        {
            var builder  = SpatialBuilder.Create();
            var pipeline = builder.GeographyPipeline;

            pipeline.SetCoordinateSystem(coordinateSystem);
            pipeline.BeginGeography(SpatialType.Point);
            pipeline.BeginFigure(new GeographyPosition(latitude, longitude, z, m));
            pipeline.EndFigure();
            pipeline.EndGeography();
            return((GeographyPoint)builder.ConstructedGeography);
        }