次の方法で共有


SqlGeometry クラス

 

SqlGeometry 型は、ユークリッド (平面) 座標系のデータを表します。

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

継承階層

System.Object
  Microsoft.SqlServer.Types.SqlGeometry

構文

[SerializableAttribute]
[SqlUserDefinedTypeAttribute(Format.UserDefined, IsByteOrdered = false, 
    MaxByteSize = -1, IsFixedLength = false)]
[CLSCompliantAttribute(true)]
public sealed class SqlGeometry : INullable, IBinarySerialize, 
    ISqlSpatialGridIndexable
[SerializableAttribute]
[SqlUserDefinedTypeAttribute(Format::UserDefined, IsByteOrdered = false, 
    MaxByteSize = -1, IsFixedLength = false)]
[CLSCompliantAttribute(true)]
public ref class SqlGeometry sealed : INullable, IBinarySerialize, 
    ISqlSpatialGridIndexable
[<Sealed>]
[<SerializableAttribute>]
[<SqlUserDefinedTypeAttribute(Format.UserDefined, IsByteOrdered = false,
    MaxByteSize = -1, IsFixedLength = false)>]
[<CLSCompliantAttribute(true)>]
type SqlGeometry = 
    class
        interface INullable
        interface IBinarySerialize
        interface ISqlSpatialGridIndexable
    end
<SerializableAttribute>
<SqlUserDefinedTypeAttribute(Format.UserDefined, IsByteOrdered := False,
    MaxByteSize := -1, IsFixedLength := False)>
<CLSCompliantAttribute(True)>
Public NotInheritable Class SqlGeometry
    Implements INullable, IBinarySerialize, ISqlSpatialGridIndexable

コンストラクター

名前 説明
System_CAPS_pubmethod SqlGeometry()

新しいインスタンスを初期化、 SqlGeometry クラスです。

プロパティ

名前 説明
System_CAPS_pubproperty HasM

空間オブジェクト内の少なくとも 1 つの地点に値 M が含まれている場合は true、それ以外の場合は false を返します。 このプロパティは読み取り専用です。

System_CAPS_pubproperty HasZ

空間オブジェクト内の少なくとも 1 つの地点に値 Z が含まれている場合は true、それ以外の場合は false を返します。 このプロパティは読み取り専用です。

System_CAPS_pubproperty IsNull

SqlGeometry オブジェクトが NULL であるかどうかを示す値を取得します。

System_CAPS_pubproperty M

SqlGeometry インスタンスの M (メジャー) 値を取得します。 メジャー値のセマンティクスはユーザー定義です。

System_CAPS_pubpropertySystem_CAPS_static Null

SqlGeometry 型の null インスタンスを提供する、読み取り専用プロパティを取得します。

System_CAPS_pubproperty STSrid

インスタンスの SRID (Spatial Reference Identifier) を表す整数を取得します。

System_CAPS_pubproperty STX

Point インスタンスの X 座標プロパティを取得します。

System_CAPS_pubproperty STY

Point インスタンスの Y 座標プロパティを取得します。

System_CAPS_pubproperty Z

インスタンスの Z (標高) 値を取得します。 標高値のセマンティクスはユーザーが定義します。

メソッド

名前 説明
System_CAPS_pubmethod AsBinaryZM()

標高とメジャーをバイナリとして返します。

System_CAPS_pubmethod AsGml()

Geography Markup Language (GML) 表現を返す、 SqlGeometry インスタンス。

System_CAPS_pubmethod AsTextZM()

インスタンスに格納されている Z (標高) 値および M (メジャー) 値で補完された SqlGeometry インスタンスについて、Open Geospatial Consortium (OGC) Well-Known Text (WKT) 表現を返します。

System_CAPS_pubmethod BufferWithCurves(Double)

曲線を含む geometry オブジェクトをバッファーに格納します。

System_CAPS_pubmethod BufferWithTolerance(Double, Double, Boolean)

すべてのポイントの和集合を表すジオメトリック オブジェクトの値からの距離を返します。、 SqlGeometry インスタンスは、指定した許容範囲内の指定された値以下です。

System_CAPS_pubmethod CurveToLineWithTolerance(Double, Boolean)

多角形近似を返します、 SqlGeometry の円弧セグメントを格納しているインスタンス。

System_CAPS_pubmethodSystem_CAPS_static Deserialize(SqlBytes)

空間データ用に内部 SQL Server 形式で構築された SqlGeometry を返します。

System_CAPS_pubmethod Equals(Object)

(Object から継承されます。)

System_CAPS_pubmethod Filter(SqlGeometry)

インデックスが使用可能である場合に、SqlGeometry インスタンスが別の SqlGeometry インスタンスと交差するかどうかを判断する、高速のインデックス専用積集合メソッドを提供します。

System_CAPS_pubmethodSystem_CAPS_static GeomFromGml(SqlXml, Int32)

構築、 SqlGeometry 表現が指定された SQL Server サブセット Geography Markup Language (GML) のインスタンス。

System_CAPS_pubmethod GetHashCode()

(Object から継承されます。)

System_CAPS_pubmethod GetType()

(Object から継承されます。)

System_CAPS_pubmethod InstanceOf(String)

SqlGeometry インスタンスが、指定した型と同じであるかどうかをテストします。

System_CAPS_pubmethod IsValidDetailed()

空間オブジェクトの有効性の問題を特定するのに役立つメッセージを返します。

System_CAPS_pubmethod MakeValid()

無効な変換 SqlGeometry インスタンスを SqlGeometry 有効な Open Geospatial Consortium (OGC) 型のインスタンス。

System_CAPS_pubmethod MinDbCompatibilityLevel()

SqlGeometry 型が許容される最小データベース互換性を返します。

System_CAPS_pubmethodSystem_CAPS_static Parse(SqlString)

Open Geospatial Consortium (OGC) の Well-Known Text (WKT) 表現を基に SqlGeometry インスタンスを返します。

System_CAPS_pubmethodSystem_CAPS_static Point(Double, Double, Int32)

X 値、Y 値、および SRID (spatial reference identifier) から、Point インスタンスを表す SqlGeometry インスタンスを構築します。

System_CAPS_pubmethod Populate(IGeometrySink)

互換性のために残されています。 geometry 型の呼び出しシーケンスを IGeometrySink オブジェクトに適用します。 呼び出しシーケンスは、一連の図形、線、および地点です。SqlGeometry

System_CAPS_pubmethod Populate(IGeometrySink110)

適用される、 geometry への呼び出しシーケンスを入力 IGeometrySink オブジェクトです。

System_CAPS_pubmethod Read(BinaryReader)

geometry 型のバイナリ表現を SqlGeometry オブジェクトに読み込みます。SqlGeometry

System_CAPS_pubmethod Reduce(Double)

概算値を返す、指定された SqlGeometry インスタンスが指定された許容範囲を持つインスタンスに対して Douglas-peucker アルゴリズムを実行することによって生成されます。

System_CAPS_pubmethod Serialize()

SqlGeometry 型の内部 SQL Server 形式を表すバイトを返します。

System_CAPS_pubmethod ShortestLineTo(SqlGeometry)

2 つの SqlGeometry インスタンスの間の最短距離を返します。

System_CAPS_pubmethod STArea()

合計面積を返す、 SqlGeometry インスタンス。

System_CAPS_pubmethod STAsBinary()

Open Geospatial Consortium (OGC) Well-Known Binary (WKB) 表現を返します、 SqlGeometry インスタンス。 この値には、インスタンスに格納されている Z 値または M 値が含まれません。

System_CAPS_pubmethod STAsText()

Open Geospatial Consortium (OGC) Well-Known Text (WKT) 表現を返します、 SqlGeometry インスタンス。 このテキストは、インスタンスに格納されている Z (標高) 値または M (メジャー) 値を含みません。

System_CAPS_pubmethod STBoundary()

SqlGeometry インスタンスの境界を返します。

System_CAPS_pubmethod STBuffer(Double)

すべての和集合を表すジオメトリック オブジェクトからの距離の地点を返します、 SqlGeometry インスタンスは、指定した値以下です。

System_CAPS_pubmethod STCentroid()

1 つ以上の多角形で構成されている SqlGeometry インスタンスの重心を返します。

System_CAPS_pubmethod STContains(SqlGeometry)

呼び出し元の SqlGeometry インスタンスが別の SqlGeometry を完全に含むかどうかを指定します。

System_CAPS_pubmethod STConvexHull()

凸包を表すオブジェクトを取得、 SqlGeometry インスタンス。

System_CAPS_pubmethod STCrosses(SqlGeometry)

呼び出し元の SqlGeometry インスタンスが指定された SqlGeometry インスタンスと交差するかどうかを示します。

System_CAPS_pubmethod STCurveN(Int32)

SqlGeometry、LineString、または CircularStringCompoundCurve インスタンスから指定された曲線を返します。

System_CAPS_pubmethod STCurveToLine()

多角形近似を返します、 SqlGeometry の円弧セグメントを格納しているインスタンス。

System_CAPS_pubmethod STDifference(SqlGeometry)

別の SqlGeometry インスタンス内に含まれていない、任意の SqlGeometry インスタンスの地点を表すオブジェクトを返します。

System_CAPS_pubmethod STDimension()

SqlGeometry インスタンスの最大次元数を返します。

System_CAPS_pubmethod STDisjoint(SqlGeometry)

呼び出し元の SqlGeometry インスタンスが、指定した SqlGeometry と比較したときに連結されていないかどうかを示します。

System_CAPS_pubmethod STDistance(SqlGeometry)

任意の SqlGeometry インスタンスの地点と指定した SqlGeometry インスタンスの地点との最短距離を返します。

System_CAPS_pubmethod STEndPoint()

終了位置を返す、 SqlGeometry インスタンス。

System_CAPS_pubmethod STEnvelope()

最小軸に沿って外接する、インスタンスの四角形を返します。

System_CAPS_pubmethod STEquals(SqlGeometry)

指定した SqlGeometry に、呼び出し元の SqlGeometry と同じ点の集合があるかどうかを示します。

System_CAPS_pubmethod STExteriorRing()

外部リングを返す、 SqlGeometry 多角形のインスタンス。

System_CAPS_pubmethodSystem_CAPS_static STGeomCollFromText(SqlChars, Int32)

返します。、 SqlGeometry インスタンスに格納されている Z (標高) 値および M (メジャー) 値で補完された、Open Geospatial Consortium (OGC) Well-Known Text (WKT) 表現からのインスタンス。

System_CAPS_pubmethodSystem_CAPS_static STGeomCollFromWKB(SqlBytes, Int32)

Open Geospatial Consortium (OGC) の Well-Known Binary (WKB) 表現を基に SqlGeometry コレクション インスタンスを返します。

System_CAPS_pubmethod STGeometryN(Int32)

SqlGeometry コレクション内の指定された SqlGeometry を返します。

System_CAPS_pubmethod STGeometryType()

geometry インスタンスで表される Open Geospatial Consortium (OGC) の型名を返します。SqlGeometry

System_CAPS_pubmethodSystem_CAPS_static STGeomFromText(SqlChars, Int32)

返します。、 SqlGeometry インスタンスに格納されている Z (標高) 値および M (メジャー) 値で補完された、Open Geospatial Consortium (OGC) Well-Known Text (WKT) 表現からのインスタンス。

System_CAPS_pubmethodSystem_CAPS_static STGeomFromWKB(SqlBytes, Int32)

返します。、 SqlGeometry 、Open Geospatial Consortium (OGC) Well-Known Binary (WKB) 表現からのインスタンス。

System_CAPS_pubmethod STInteriorRingN(Int32)

Polygon の SqlGeometry インスタンスの指定した内部リングを返します。

System_CAPS_pubmethod STIntersection(SqlGeometry)

SqlGeometry インスタンスが別の SqlGeometry インスタンスと交差する地点を表すオブジェクトを返します。

System_CAPS_pubmethod STIntersects(SqlGeometry)

呼び出し元の SqlGeometry インスタンスが別の SqlGeometry と交差するかどうかを示します。

System_CAPS_pubmethod STIsClosed()

呼び出し元の SqlGeometry の始点と終点が同じかどうかを示します。

System_CAPS_pubmethod STIsEmpty()

呼び出し元の SqlGeometry インスタンスが空かどうかを示します。

System_CAPS_pubmethod STIsRing()

呼び出し元の SqlGeometry インスタンスがリングかどうかを示します。

System_CAPS_pubmethod STIsSimple()

呼び出し元の SqlGeometry インスタンスが単純なものかどうかを示します。

System_CAPS_pubmethod STIsValid()

SqlGeometry インスタンスが適切な形式かどうかを示します。

System_CAPS_pubmethod STLength()

内の要素の合計の長さを返す、 SqlGeometry インスタンス。

System_CAPS_pubmethodSystem_CAPS_static STLineFromText(SqlChars, Int32)

返します。、 SqlGeometry インスタンスに格納されている Z (標高) 値および M (メジャー) 値で補完された、Open Geospatial Consortium (OGC) Well-Known Text (WKT) 表現からのインスタンス。

System_CAPS_pubmethodSystem_CAPS_static STLineFromWKB(SqlBytes, Int32)

Open Geospatial Consortium (OGC) の Well-Known Binary (WKB) 表現を基に SqlGeometry の LineString インスタンスを返します。

System_CAPS_pubmethodSystem_CAPS_static STMLineFromText(SqlChars, Int32)

返します。、 SqlGeometry インスタンスに格納されている Z (標高) 値および M (メジャー) 値で補完された、Open Geospatial Consortium (OGC) Well-Known Text (WKT) 表現からのインスタンス。

System_CAPS_pubmethodSystem_CAPS_static STMLineFromWKB(SqlBytes, Int32)

Open Geospatial Consortium (OGC) の Well-Known Binary (WKB) 表現を基に SqlGeometry の MultiLineString インスタンスを返します。

System_CAPS_pubmethodSystem_CAPS_static STMPointFromText(SqlChars, Int32)

返します。、 SqlGeometry インスタンスに格納されている Z (標高) 値および M (メジャー) 値で補完された、Open Geospatial Consortium (OGC) Well-Known Text (WKT) 表現からのインスタンス。

System_CAPS_pubmethodSystem_CAPS_static STMPointFromWKB(SqlBytes, Int32)

返します。、 SqlGeometry 、Open Geospatial Consortium (OGC) Well-Known Binary (WKB) 表現からインスタンスをポイントします。

System_CAPS_pubmethodSystem_CAPS_static STMPolyFromText(SqlChars, Int32)

インスタンスに格納されている Z (標高) 値および M (メジャー) 値で補完された、Open Geospatial Consortium (OGC) の Well-Known Text (WKT) 表現を基に SqlGeometry インスタンスを返します。

System_CAPS_pubmethodSystem_CAPS_static STMPolyFromWKB(SqlBytes, Int32)

Open Geospatial Consortium (OGC) の Well-Known Binary (WKB) 表現を基に SqlGeometry の MultiPolygon インスタンスを返します。

System_CAPS_pubmethod STNumCurves()

1 次元内の曲線の数を返します SqlGeometry インスタンス。

System_CAPS_pubmethod STNumGeometries()

SqlGeometry インスタンスを構成する SqlGeometry の数を返します。

System_CAPS_pubmethod STNumInteriorRing()

Polygon の SqlGeometry インスタンスの内部リングの数を返します。

System_CAPS_pubmethod STNumPoints()

扱った図の各ポイントの数の合計を返して、 SqlGeometry インスタンス。

System_CAPS_pubmethod STOverlaps(SqlGeometry)

指定した SqlGeometry が現在の SqlGeometry と重なるかどうかを示します。

System_CAPS_pubmethodSystem_CAPS_static STPointFromText(SqlChars, Int32)

返します。、 SqlGeometry インスタンスに格納されている Z (標高) 値および M (メジャー) 値で補完された、Open Geospatial Consortium (OGC) Well-Known Text (WKT) 表現からのインスタンス。

System_CAPS_pubmethodSystem_CAPS_static STPointFromWKB(SqlBytes, Int32)

返します。、 SqlGeometry 、Open Geospatial Consortium (OGC) Well-Known Binary (WKB) 表現からインスタンスをポイントします。

System_CAPS_pubmethod STPointN(Int32)

SqlGeometry インスタンス内の指定した地点を返します。

System_CAPS_pubmethod STPointOnSurface()

SqlGeometry インスタンスの内部にある任意の地点を返します。

System_CAPS_pubmethodSystem_CAPS_static STPolyFromText(SqlChars, Int32)

返します。、 SqlGeometry インスタンスに格納されている Z (標高) 値および M (メジャー) 値で補完された、Open Geospatial Consortium (OGC) Well-Known Text (WKT) 表現からのインスタンス。

System_CAPS_pubmethodSystem_CAPS_static STPolyFromWKB(SqlBytes, Int32)

Open Geospatial Consortium (OGC) の Well-Known Binary (WKB) 表現を基に SqlGeometry の Polygon インスタンスを返します。

System_CAPS_pubmethod STRelate(SqlGeometry, String)

呼び出し元の SqlGeometry が指定された SqlGeometry に関連しているかどうかを示します。

System_CAPS_pubmethod STStartPoint()

SqlGeometry インスタンスの始点を返します。

System_CAPS_pubmethod STSymDifference(SqlGeometry)

任意の SqlGeometry インスタンスと別の SqlGeometry インスタンスのいずれかに存在する地点すべてを表すオブジェクトを返します。つまり、両方のインスタンスに存在する地点は除外されます。

System_CAPS_pubmethod STTouches(SqlGeometry)

指定した SqlGeometry が現在の SqlGeometry に接しているかどうかを示します。

System_CAPS_pubmethod STUnion(SqlGeometry)

和集合を表すオブジェクトを取得、 SqlGeometry インスタンスと別 SqlGeometry インスタンス。

System_CAPS_pubmethod STWithin(SqlGeometry)

現在の SqlGeometry が、指定した SqlGeometry インスタンスに完全に含まれているかどうかを示します。

System_CAPS_pubmethod ToString()

Open Geospatial Consortium (OGC) Well-Known Text (WKT) 表現を返します、 SqlGeometry インスタンスに格納されている Z (標高) 値および M (メジャー) 値で補完されたインスタンス。(Object.ToString() をオーバーライドします。)

System_CAPS_pubmethod Write(BinaryWriter)

SqlGeometry インスタンスをバイナリ ストリームに書き込みます。SqlGeometry

明示的なインターフェイスの実装

名前 説明
System_CAPS_pubinterfaceSystem_CAPS_privmethod ISqlSpatialGridIndexable.BufferForDistanceQuery(Double, Boolean)

SQL Geometry の距離のクエリのバッファーを返します。

System_CAPS_pubinterfaceSystem_CAPS_privmethod ISqlSpatialGridIndexable.GetBoundingBoxCorners(Double, Double, Double, Double)

SQL Geometry の境界ボックスのコーナーの値を返します。

System_CAPS_pubinterfaceSystem_CAPS_privmethod ISqlSpatialGridIndexable.GetGridCoverage(Boolean, Double, Double, Double, Double, Double, Double, Int32, Int32, Boolean[,], Boolean[,], Int32, Int32, Boolean, Boolean)

SQL Geometry のグリッド カバレッジを返します。

System_CAPS_pubinterfaceSystem_CAPS_privmethod ISqlSpatialGridIndexable.InteriorBufferForDistanceQuery(Double)

SQL Geometry の距離のクエリの内部バッファーを取得します。

備考

SQL Server 2016 では、geometry 空間データ型の一連のメソッドをサポートしています。 このようなメソッドには、Open Geospatial Consortium (OGC) 標準で定義されているジオメトリに関するメソッド、およびこの標準に基づいた Microsoft の一連の拡張メソッドがあります。

スレッド セーフ

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

関連項目

Microsoft.SqlServer.Types 名前空間

トップに戻る