SqlGeographyBuilder 클래스
Constructs instances of SqlGeography objects by using IGeographySink interface.
상속 계층
System. . :: . .Object
Microsoft.SqlServer.Types..::..SqlGeographyBuilder
네임스페이스: Microsoft.SqlServer.Types
어셈블리: Microsoft.SqlServer.Types(Microsoft.SqlServer.Types.dll)
구문
‘선언
<CLSCompliantAttribute(True)> _
Public Class SqlGeographyBuilder _
Implements IGeographySink
‘사용 방법
Dim instance As SqlGeographyBuilder
[CLSCompliantAttribute(true)]
public class SqlGeographyBuilder : IGeographySink
[CLSCompliantAttribute(true)]
public ref class SqlGeographyBuilder : IGeographySink
[<CLSCompliantAttribute(true)>]
type SqlGeographyBuilder =
class
interface IGeographySink
end
public class SqlGeographyBuilder implements IGeographySink
SqlGeographyBuilder 유형에서 다음 멤버를 표시합니다.
메서드
이름 | 설명 | |
---|---|---|
![]() |
AddLine(Double, Double) | Constructs additional points in a geography type figure. |
![]() |
AddLine(Double, Double, Nullable< (Of < <' (Double> ) > > ), Nullable< (Of < <' (Double> ) > > )) | Constructs additional points in a geography type figure. |
![]() |
BeginFigure(Double, Double) | Starts the call sequence for a geography figure. |
![]() |
BeginFigure(Double, Double, Nullable< (Of < <' (Double> ) > > ), Nullable< (Of < <' (Double> ) > > )) | Starts the call sequence for a geography figure. |
![]() |
BeginGeography | Initializes a call sequence for a geography type. |
![]() |
EndFigure | Finishes a call sequence for a geography figure. |
![]() |
EndGeography | Finishes a call sequence for a geography type. |
![]() |
Equals | (Object에서 상속됨) |
![]() |
Finalize | (Object에서 상속됨) |
![]() |
GetHashCode | (Object에서 상속됨) |
![]() |
GetType | (Object에서 상속됨) |
![]() |
MemberwiseClone | (Object에서 상속됨) |
![]() |
SetSrid | Sets the Spatial Reference Identifier (SRID) for a geography type call sequence. |
![]() |
ToString | (Object에서 상속됨) |
맨 위로 이동
주의
Throws FormatException for an invalid call sequence or when a call sequence is incomplete when ConstructedGeography() is invoked.
예
The following example constructs a SqlGeometry object from a MultiLineString.
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();
스레드 보안
이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.