コード例 #1
0
ファイル: GeographyPoint.cs プロジェクト: modulexcite/pash-1
        public static GeographyPoint Create(CoordinateSystem coordinateSystem, double latitude, double longitude, double?z, double?m)
        {
            SpatialBuilder    builder           = SpatialBuilder.Create();
            GeographyPipeline geographyPipeline = builder.GeographyPipeline;

            geographyPipeline.SetCoordinateSystem(coordinateSystem);
            geographyPipeline.BeginGeography(SpatialType.Point);
            geographyPipeline.BeginFigure(new GeographyPosition(latitude, longitude, z, m));
            geographyPipeline.EndFigure();
            geographyPipeline.EndGeography();
            return((GeographyPoint)builder.ConstructedGeography);
        }
コード例 #2
0
 public virtual void SendTo(GeographyPipeline chain)
 {
     Util.CheckArgumentNull(chain, "chain");
     chain.SetCoordinateSystem(this.coordinateSystem);
 }