SqlGeometryBuilder.BeginGeometry-Methode
Initializes a call sequence for a geometry type.
Namespace: Microsoft.SqlServer.Types
Assembly: Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)
Syntax
'Declaration
Public Overridable Sub BeginGeometry ( _
type As OpenGisGeometryType _
)
'Usage
Dim instance As SqlGeometryBuilder
Dim type As OpenGisGeometryType
instance.BeginGeometry(type)
public virtual void BeginGeometry(
OpenGisGeometryType type
)
public:
virtual void BeginGeometry(
OpenGisGeometryType type
)
abstract BeginGeometry :
type:OpenGisGeometryType -> unit
override BeginGeometry :
type:OpenGisGeometryType -> unit
public function BeginGeometry(
type : OpenGisGeometryType
)
Parameter
- type
Typ: Microsoft.SqlServer.Types.OpenGisGeometryType
OpenGisGeometryType object that indicates the type being created by the call sequence.
Implementiert
IGeometrySink.BeginGeometry(OpenGisGeometryType)
Hinweise
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