次の方法で共有


SqlGeographyBuilder クラス

IGeographySink インターフェイスを使用して、SqlGeography オブジェクトのインスタンスを構築します。

継承階層

System.Object
  Microsoft.SqlServer.Types.SqlGeographyBuilder

名前空間:  Microsoft.SqlServer.Types
アセンブリ:  Microsoft.SqlServer.Types (Microsoft.SqlServer.Types.dll)

構文

'宣言
<CLSCompliantAttribute(True)> _
Public Class SqlGeographyBuilder _
    Implements IGeographySink110, IGeographySink
'使用
Dim instance As SqlGeographyBuilder
[CLSCompliantAttribute(true)]
public class SqlGeographyBuilder : IGeographySink110, 
    IGeographySink
[CLSCompliantAttribute(true)]
public ref class SqlGeographyBuilder : IGeographySink110, 
    IGeographySink
[<CLSCompliantAttribute(true)>]
type SqlGeographyBuilder =  
    class 
        interface IGeographySink110 
        interface IGeographySink 
    end
public class SqlGeographyBuilder implements IGeographySink110, IGeographySink

SqlGeographyBuilder 型は、以下のメンバーを公開しています。

コンストラクター

  名前 説明
パブリック メソッド SqlGeographyBuilder SqlGeographyBuilder オブジェクトを構築します。

先頭に戻る

プロパティ

  名前 説明
パブリック プロパティ ConstructedGeography 構築された geography 空間オブジェクトを取得します。

先頭に戻る

メソッド

  名前 説明
パブリック メソッド AddCircularArc(Double, Double, Double, Double) 円弧をパスに追加します。
パブリック メソッド AddCircularArc(Double, Double, Nullable<Double>, Nullable<Double>, Double, Double, Nullable<Double>, Nullable<Double>) 円弧をパスに追加します。
パブリック メソッド AddLine(Double, Double) geography 型の図形の追加の点を作成します。
パブリック メソッド AddLine(Double, Double, Nullable<Double>, Nullable<Double>) geography 型の図形の追加の点を作成します。
パブリック メソッド BeginFigure(Double, Double) geography 図形の呼び出しシーケンスを開始します。
パブリック メソッド BeginFigure(Double, Double, Nullable<Double>, Nullable<Double>) geography 図形の呼び出しシーケンスを開始します。
パブリック メソッド BeginGeography geography 型の呼び出しシーケンスを初期化します。
パブリック メソッド EndFigure geography 図形の呼び出しシーケンスを終了します。
パブリック メソッド EndGeography geography 型の呼び出しシーケンスを終了します。
パブリック メソッド Equals (Object から継承されています。)
プロテクト メソッド Finalize (Object から継承されています。)
パブリック メソッド GetHashCode (Object から継承されています。)
パブリック メソッド GetType (Object から継承されています。)
プロテクト メソッド MemberwiseClone (Object から継承されています。)
パブリック メソッド SetSrid geography 型の呼び出しシーケンスの SRID (patial Reference Identifier) を設定します。
パブリック メソッド ToString (Object から継承されています。)

先頭に戻る

説明

ConstructedGeography() の呼び出し時に呼び出しシーケンスが無効または不完全である場合、FormatException をスローします。

使用例

次の例では、MultiLineString から SqlGeography オブジェクトを構築します。

SqlGeographyBuilder b = new SqlGeographyBuilder();

b.SetSrid(4326);

b.BeginGeography(OpenGisGeographyType.MultiLineString);

b.BeginGeography(OpenGisGeographyType.LineString);

b.BeginFigure(-122.358, 47.653);

b.AddLine(-122.348, 47.649);

b.EndFigure();

b.EndGeography();

b.BeginGeography(OpenGisGeographyType.LineString);

b.BeginFigure(-118.481, 48.328);

b.AddLine(-119.002, 47.324);

b.EndFigure();

b.EndGeography();

b.EndGeography();

SqlGeography g = b.ConstructedGeography();

スレッド セーフ

この型の public static (Visual Basic では Shared) のメンバーはすべて、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

関連項目

参照

Microsoft.SqlServer.Types 名前空間