Compartir a través de


Clase SqlGeographyBuilder

Constructs instances of SqlGeography objects by using IGeographySink interface.

Jerarquía de herencia

System.Object
  Microsoft.SqlServer.Types.SqlGeographyBuilder

Espacio de nombres:  Microsoft.SqlServer.Types
Ensamblado:  Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)

Sintaxis

'Declaración
<CLSCompliantAttribute(True)> _
Public Class SqlGeographyBuilder _
    Implements IGeographySink110, IGeographySink
'Uso
Dim instance As SqlGeographyBuilder
[CLSCompliantAttribute(true)]
public class SqlGeographyBuilder : IGeographySink110, 
    IGeographySink
[CLSCompliantAttribute(true)]
public ref class SqlGeographyBuilder : IGeographySink110, 
    IGeographySink
[<CLSCompliantAttribute(true)>]
type SqlGeographyBuilder =  
    class 
        interface IGeographySink110 
        interface IGeographySink 
    end
public class SqlGeographyBuilder implements IGeographySink110, IGeographySink

El tipo SqlGeographyBuilder expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público SqlGeographyBuilder Constructs a SqlGeographyBuilder object.

Arriba

Propiedades

  Nombre Descripción
Propiedad pública ConstructedGeography Retrieves the constructed spatial geography object.

Arriba

Métodos

  Nombre Descripción
Método público AddCircularArc(Double, Double, Double, Double) Adds a circular arc to the path.
Método público AddCircularArc(Double, Double, Nullable<Double>, Nullable<Double>, Double, Double, Nullable<Double>, Nullable<Double>) Adds a circular arc to the path.
Método público AddLine(Double, Double) Constructs additional points in a geography type figure.
Método público AddLine(Double, Double, Nullable<Double>, Nullable<Double>) Constructs additional points in a geography type figure.
Método público BeginFigure(Double, Double) Starts the call sequence for a geography figure.
Método público BeginFigure(Double, Double, Nullable<Double>, Nullable<Double>) Starts the call sequence for a geography figure.
Método público BeginGeography Initializes a call sequence for a geography type.
Método público EndFigure Finishes a call sequence for a geography figure.
Método público EndGeography Finishes a call sequence for a geography type.
Método público Equals (Se hereda de Object.)
Método protegido Finalize (Se hereda de Object.)
Método público GetHashCode (Se hereda de Object.)
Método público GetType (Se hereda de Object.)
Método protegido MemberwiseClone (Se hereda de Object.)
Método público SetSrid Sets the Spatial Reference Identifier (SRID) for a geography type call sequence.
Método público ToString (Se hereda de Object.)

Arriba

Comentarios

Throws FormatException for an invalid call sequence or when a call sequence is incomplete when ConstructedGeography() is invoked.

Ejemplos

The following example constructs a SqlGeometry object from a MultiLineString.

SqlGeographyBuilder b = new SqlGeographyBuilder();

b.SetSrid(4326);

b.BeginGeography(OpenGisGeographyType.MultiLineString);

b.BeginGeography(OpenGisGeographyType.LineString);

b.BeginFigure(-122.358, 47.653);

b.AddLine(-122.348, 47.649);

b.EndFigure();

b.EndGeography();

b.BeginGeography(OpenGisGeographyType.LineString);

b.BeginFigure(-118.481, 48.328);

b.AddLine(-119.002, 47.324);

b.EndFigure();

b.EndGeography();

b.EndGeography();

SqlGeography g = b.ConstructedGeography();

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres Microsoft.SqlServer.Types