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)

No code example is currently available or this language may not be supported.

Parameters

latitude
Type: System.Double

A double that specifies the latitude of a point in a geography figure.

longitude
Type: System.Double

A double that specifies the longitude of a point in a geography figure.

z
Type: System.Nullable<Double>

A double that specifies the altitude of a point in a geography figure. Is Nullable.

m
Type: System.Nullable<Double>

A double that specifies the measure type for the point. Is Nullable.

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.

Return to top
Show: