Export (0) Print
Expand All

SqlGeometryBuilder.BeginGeometry Method

Initializes a call sequence for a geometry type.

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

public virtual void BeginGeometry(
	OpenGisGeometryType type
)

Parameters

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

Implements

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft