Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AddLine Method (Double, Double, Nullable(Double), Nullable(Double))

SqlGeographyBuilder.AddLine Method (Double, Double, Nullable(Double), Nullable(Double))

Constructs additional points in a geography type figure.

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

public function AddLine(
	latitude : double, 
	longitude : double, 
	z : Nullable<double>, 
	m : Nullable<double>
)

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.
z
Type: Nullable(Double)
A double that specifies the altitude of a point in a geography figure. Is Nullable.
m
Type: Nullable(Double)
A double that specifies the measure type for the point. Is Nullable.

Implements

IGeographySink.AddLine(Double, Double, Nullable(Double), Nullable(Double))

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:
© 2015 Microsoft