SqlGeometryBuilder.BeginGeometry 메서드

SQL Server 2012

Initializes a call sequence for a geometry type.

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

public virtual void BeginGeometry(
	OpenGisGeometryType type
)

매개 변수

type
유형: Microsoft.SqlServer.Types.OpenGisGeometryType
OpenGisGeometryType object that indicates the type being created by the call sequence.

구현

IGeometrySink.BeginGeometry(OpenGisGeometryType)

Call sequences that open with a BeginGeometry() must close with a EndGeometry().

BeginGeometry() and EndGeometry() pairs can be nested.

Valid values for type are Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, and GeometryCollection.

The following example is a WKI (Well Known Interface) call sequence for a MultiLineString object.

SetSrid 0

BeginGeometry MultiLineString

BeginGeometry LineString

BeginFigure 1 0

AddLine 2 0

EndFigure

EndGeometry

BeginGeometry LineString

BeginFigure -5 4

AddLine -3 8

EndFigure

EndGeometry

EndGeometry

커뮤니티 추가 항목

추가
표시: