SqlGeometryBuilder 클래스

Constructs instances of SqlGeometry objects by using IGeometrySink interface.

상속 계층

System.Object
  Microsoft.SqlServer.Types.SqlGeometryBuilder

네임스페이스:  Microsoft.SqlServer.Types
어셈블리:  Microsoft.SqlServer.Types(Microsoft.SqlServer.Types.dll)

구문

‘선언
<CLSCompliantAttribute(True)> _
Public Class SqlGeometryBuilder _
    Implements IGeometrySink110, IGeometrySink
‘사용 방법
Dim instance As SqlGeometryBuilder
[CLSCompliantAttribute(true)]
public class SqlGeometryBuilder : IGeometrySink110, 
    IGeometrySink
[CLSCompliantAttribute(true)]
public ref class SqlGeometryBuilder : IGeometrySink110, 
    IGeometrySink
[<CLSCompliantAttribute(true)>]
type SqlGeometryBuilder =  
    class 
        interface IGeometrySink110 
        interface IGeometrySink 
    end
public class SqlGeometryBuilder implements IGeometrySink110, IGeometrySink

SqlGeometryBuilder 유형에서 다음 멤버를 표시합니다.

생성자

  이름 설명
공용 메서드 SqlGeometryBuilder Constructs a SqlGeometryBuilder object.

맨 위로 이동

속성

  이름 설명
공용 속성 ConstructedGeometry Retrieves constructed spatial geometry object.

맨 위로 이동

메서드

  이름 설명
공용 메서드 AddCircularArc(Double, Double, Double, Double) Adds a circular arc to the path.
공용 메서드 AddCircularArc(Double, Double, Nullable<Double>, Nullable<Double>, Double, Double, Nullable<Double>, Nullable<Double>) Adds a circular arc to the path.
공용 메서드 AddLine(Double, Double) Constructs additional points in a geometry type figure.
공용 메서드 AddLine(Double, Double, Nullable<Double>, Nullable<Double>) Constructs additional points in the call sequence for a geometry type.
공용 메서드 BeginFigure(Double, Double) Starts the call sequence for a geometry figure.
공용 메서드 BeginFigure(Double, Double, Nullable<Double>, Nullable<Double>) Starts the call sequence for a geometry figure.
공용 메서드 BeginGeometry Initializes a call sequence for a geometry type.
공용 메서드 EndFigure Finishes a call sequence for a geometry figure.
공용 메서드 EndGeometry Finishes a call sequence for a geometry type.
공용 메서드 Equals (Object에서 상속됨)
보호된 메서드 Finalize (Object에서 상속됨)
공용 메서드 GetHashCode (Object에서 상속됨)
공용 메서드 GetType (Object에서 상속됨)
보호된 메서드 MemberwiseClone (Object에서 상속됨)
공용 메서드 SetSrid Sets the Spatial Reference Identifier (SRID) for a geometry type call sequence.
공용 메서드 ToString (Object에서 상속됨)

맨 위로 이동

주의

Throws FormatException for an invalid call sequence or when a call sequence is incomplete when ConstructedGeometry() is invoked.

The following example constructs a SqlGeometry object from a MultiLineString.

SqlGeometryBuilder b = new SqlGeometryBuilder();

b.SetSrid(0);

b.BeginGeometry(OpenGisGeometryType.MultiLineString);

b.BeginGeometry(OpenGisGeometryType.LineString);

b.BeginFigure(1, 1);

b.AddLine(3, 4);

b.EndFigure();

b.EndGeometry();

b.BeginGeometry(OpenGisGeometryType.LineString);

b.BeginFigure(-5, -3);

b.AddLine(2, 2);

b.EndFigure();

b.EndGeometry();

b.EndGeometry();

SqlGeometry g = b.ConstructedGeometry();

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

Microsoft.SqlServer.Types 네임스페이스