Método SqlGeometryBuilder.BeginGeometry
Initializes a call sequence for a geometry type.
Namespace: Microsoft.SqlServer.Types
Assembly: Microsoft.SqlServer.Types (em Microsoft.SqlServer.Types.dll)
Sintaxe
'Declaração
Public Overridable Sub BeginGeometry ( _
type As OpenGisGeometryType _
)
'Uso
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
)
Parâmetros
- type
Tipo: Microsoft.SqlServer.Types.OpenGisGeometryType
OpenGisGeometryType object that indicates the type being created by the call sequence.
Implementa
IGeometrySink.BeginGeometry(OpenGisGeometryType)
Comentários
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