Clase SqlGeometryBuilder
Constructs instances of SqlGeometry objects by using IGeometrySink interface.
Jerarquía de herencia
System.Object
Microsoft.SqlServer.Types.SqlGeometryBuilder
Espacio de nombres: Microsoft.SqlServer.Types
Ensamblado: Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)
Sintaxis
'Declaración
<CLSCompliantAttribute(True)> _
Public Class SqlGeometryBuilder _
Implements IGeometrySink110, IGeometrySink
'Uso
Dim instance As SqlGeometryBuilder
[CLSCompliantAttribute(true)]
public class SqlGeometryBuilder : IGeometrySink110,
IGeometrySink
[CLSCompliantAttribute(true)]
public ref class SqlGeometryBuilder : IGeometrySink110,
IGeometrySink
[<CLSCompliantAttribute(true)>]
type SqlGeometryBuilder =
class
interface IGeometrySink110
interface IGeometrySink
end
public class SqlGeometryBuilder implements IGeometrySink110, IGeometrySink
El tipo SqlGeometryBuilder expone los siguientes miembros.
Constructores
Nombre | Descripción | |
---|---|---|
SqlGeometryBuilder | Constructs a SqlGeometryBuilder object. |
Arriba
Propiedades
Nombre | Descripción | |
---|---|---|
ConstructedGeometry | Retrieves constructed spatial geometry object. |
Arriba
Métodos
Nombre | Descripción | |
---|---|---|
AddCircularArc(Double, Double, Double, Double) | Adds a circular arc to the path. | |
AddCircularArc(Double, Double, Nullable<Double>, Nullable<Double>, Double, Double, Nullable<Double>, Nullable<Double>) | Adds a circular arc to the path. | |
AddLine(Double, Double) | Constructs additional points in a geometry type figure. | |
AddLine(Double, Double, Nullable<Double>, Nullable<Double>) | Constructs additional points in the call sequence for a geometry type. | |
BeginFigure(Double, Double) | Starts the call sequence for a geometry figure. | |
BeginFigure(Double, Double, Nullable<Double>, Nullable<Double>) | Starts the call sequence for a geometry figure. | |
BeginGeometry | Initializes a call sequence for a geometry type. | |
EndFigure | Finishes a call sequence for a geometry figure. | |
EndGeometry | Finishes a call sequence for a geometry type. | |
Equals | (Se hereda de Object.) | |
Finalize | (Se hereda de Object.) | |
GetHashCode | (Se hereda de Object.) | |
GetType | (Se hereda de Object.) | |
MemberwiseClone | (Se hereda de Object.) | |
SetSrid | Sets the Spatial Reference Identifier (SRID) for a geometry type call sequence. | |
ToString | (Se hereda de Object.) |
Arriba
Comentarios
Throws FormatException for an invalid call sequence or when a call sequence is incomplete when ConstructedGeometry() is invoked.
Ejemplos
The following example constructs a SqlGeometry object from a MultiLineString.
SqlGeometryBuilder b = new SqlGeometryBuilder();
b.SetSrid(0);
b.BeginGeometry(OpenGisGeometryType.MultiLineString);
b.BeginGeometry(OpenGisGeometryType.LineString);
b.BeginFigure(1, 1);
b.AddLine(3, 4);
b.EndFigure();
b.EndGeometry();
b.BeginGeometry(OpenGisGeometryType.LineString);
b.BeginFigure(-5, -3);
b.AddLine(2, 2);
b.EndFigure();
b.EndGeometry();
b.EndGeometry();
SqlGeometry g = b.ConstructedGeometry();
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.