Export (0) Print
Expand All

SqlGeographyBuilder.AddLine Method (Double, Double)

Constructs additional points in a geography type figure.

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

'Declaration
Public Sub AddLine ( _
	latitude As Double, _
	longitude As Double _
)
'Usage
Dim instance As SqlGeographyBuilder 
Dim latitude As Double 
Dim longitude As Double

instance.AddLine(latitude, longitude)

Parameters

latitude
Type: Double
A double that specifies the latitude of a point in a geography figure.
longitude
Type: Double
A double that specifies the longitude of a point in a geography figure.

Method is used together with BeginFigure() to construct the points of a geography type figure. BeginFigure() can only construct the starting endpoint for a geography type figure. Use AddLine() to construct additional points for the figure.

Method throws a FormatException when there is invalid input.

Community Additions

ADD
Show:
© 2014 Microsoft