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)); }
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); }
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); }