SqlGeometry classe

 

Le type SqlGeometry représente des données dans un système de coordonnées euclidien (plat).

Espace de noms:   Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (dans Microsoft.SqlServer.Types.dll)

Hiérarchie d’héritage

System.Object
  Microsoft.SqlServer.Types.SqlGeometry

Syntaxe

[SerializableAttribute]
[SqlUserDefinedTypeAttribute(Format.UserDefined, IsByteOrdered = false, 
    MaxByteSize = -1, IsFixedLength = false)]
[CLSCompliantAttribute(true)]
public sealed class SqlGeometry : INullable, IBinarySerialize, 
    ISqlSpatialGridIndexable
[SerializableAttribute]
[SqlUserDefinedTypeAttribute(Format::UserDefined, IsByteOrdered = false, 
    MaxByteSize = -1, IsFixedLength = false)]
[CLSCompliantAttribute(true)]
public ref class SqlGeometry sealed : INullable, IBinarySerialize, 
    ISqlSpatialGridIndexable
[<Sealed>]
[<SerializableAttribute>]
[<SqlUserDefinedTypeAttribute(Format.UserDefined, IsByteOrdered = false,
    MaxByteSize = -1, IsFixedLength = false)>]
[<CLSCompliantAttribute(true)>]
type SqlGeometry = 
    class
        interface INullable
        interface IBinarySerialize
        interface ISqlSpatialGridIndexable
    end
<SerializableAttribute>
<SqlUserDefinedTypeAttribute(Format.UserDefined, IsByteOrdered := False,
    MaxByteSize := -1, IsFixedLength := False)>
<CLSCompliantAttribute(True)>
Public NotInheritable Class SqlGeometry
    Implements INullable, IBinarySerialize, ISqlSpatialGridIndexable

Constructeurs

Nom Description
System_CAPS_pubmethod SqlGeometry()

Initialise une nouvelle instance de la SqlGeometry classe.

Propriétés

Nom Description
System_CAPS_pubproperty HasM

Retourne true si au moins un point d'un objet spatial contient la valeur M ; sinon, retourne false. Cette propriété est en lecture seule.

System_CAPS_pubproperty HasZ

Retourne true si au moins un point d'un objet spatial contient la valeur Z ; sinon, retourne false. Cette propriété est en lecture seule.

System_CAPS_pubproperty IsNull

Obtient une valeur qui indique si l'objet SqlGeometry est Null.

System_CAPS_pubproperty M

Obtient la valeur M (mesure) de l'instance SqlGeometry. La sémantique de la valeur de mesure est définie par l'utilisateur.

System_CAPS_pubpropertySystem_CAPS_static Null

Obtient une propriété en lecture seule qui fournit une instance Null du type SqlGeometry.

System_CAPS_pubproperty STSrid

Obtient ou définit un entier qui représente l'identificateur de référence spatial (SRID, Spatial Reference Identifier) de l'instance.

System_CAPS_pubproperty STX

Obtient la propriété de coordonnée X d'une instance Point.

System_CAPS_pubproperty STY

Obtient la propriété de coordonnée Y d'une instance Point.

System_CAPS_pubproperty Z

Obtient la valeur Z (élévation) de l'instance. La sémantique de la valeur d'élévation est définie par l'utilisateur.

Méthodes

Nom Description
System_CAPS_pubmethod AsBinaryZM()

Retourne l'élévation et la mesure sous forme binaire.

System_CAPS_pubmethod AsGml()

Retourne la représentation de langage GML (Geography Markup) d’un SqlGeometry instance.

System_CAPS_pubmethod AsTextZM()

Retourne la représentation OGC (Open Geospatial Consortium) WKT (Well-Known Text) d'une instance SqlGeometry, augmentée des valeurs Z (élévation) et M (mesure) apportées par l'instance.

System_CAPS_pubmethod BufferWithCurves(Double)

Met en mémoire tampon les objets geometry avec des courbes.

System_CAPS_pubmethod BufferWithTolerance(Double, Double, Boolean)

Retourne un objet géométrique qui représente l'union de toutes les valeurs de points dont la distance à partir d'une instance SqlGeometry est inférieure ou égale à une valeur spécifiée, en tenant compte d'une tolérance spécifiée.

System_CAPS_pubmethod CurveToLineWithTolerance(Double, Boolean)

Retourne une approximation polygonale d’une SqlGeometry instance qui contient les segments d’arc.

System_CAPS_pubmethodSystem_CAPS_static Deserialize(SqlBytes)

Retourne un SqlGeometry construit à partir d'un format interne SQL Server pour les données spatiales.

System_CAPS_pubmethod Equals(Object)

(Hérité de Object.)

System_CAPS_pubmethod Filter(SqlGeometry)

Offre une méthode rapide d'intersection d'index uniquement pour déterminer si une instance SqlGeometry entre en intersection avec une autre instance SqlGeometry, en supposant qu'un index soit disponible.

System_CAPS_pubmethodSystem_CAPS_static GeomFromGml(SqlXml, Int32)

Construit un SqlGeometry instance une représentation donnée dans le sous-ensemble de SQL Server de la géographie GML (Markup Language).

System_CAPS_pubmethod GetHashCode()

(Hérité de Object.)

System_CAPS_pubmethod GetType()

(Hérité de Object.)

System_CAPS_pubmethod InstanceOf(String)

Teste si l'instance SqlGeometry est du même type que l'instance spécifiée.

System_CAPS_pubmethod IsValidDetailed()

Retourne un message pour aider à identifier des problèmes de validité avec un objet spatial.

System_CAPS_pubmethod MakeValid()

Convertit une instance SqlGeometry non valide en une instance SqlGeometry avec un type Open Geospatial Consortium (OGC) valide.

System_CAPS_pubmethod MinDbCompatibilityLevel()

Retourne la compatibilité minimale de la base de données qui accepte le type SqlGeometry.

System_CAPS_pubmethodSystem_CAPS_static Parse(SqlString)

Retourne une instance SqlGeometry à partir d'une représentation OGC (Open Geospatial Consortium) WKT (Well-Known Text).

System_CAPS_pubmethodSystem_CAPS_static Point(Double, Double, Int32)

Construit une instance SqlGeometry qui représente une instance Point à partir de ses valeurs X et Y et d'un SRID.

System_CAPS_pubmethod Populate(IGeometrySink)

Obsolète.Applique une séquence d'appel de type geometry à un objet IGeometrySink. La séquence d'appel est un ensemble séquentiel de figures, de lignes et de points.SqlGeometry

System_CAPS_pubmethod Populate(IGeometrySink110)

Applique un geometry séquence d’appel de type IGeometrySink objet.

System_CAPS_pubmethod Read(BinaryReader)

Lit une représentation binaire d'un type geometry dans un objet SqlGeometry.SqlGeometry

System_CAPS_pubmethod Reduce(Double)

Retourne une approximation de l'instance SqlGeometry donnée produite en exécutant l'algorithme de Douglas-Peucker sur l'instance avec la tolérance donnée.

System_CAPS_pubmethod Serialize()

Retourne les octets qui représentent un format interne SQL Server de type SqlGeometry.

System_CAPS_pubmethod ShortestLineTo(SqlGeometry)

Retourne la distance la plus courte entre deux instances SqlGeometry.

System_CAPS_pubmethod STArea()

Retourne la surface d'exposition totale d'une instance SqlGeometry.

System_CAPS_pubmethod STAsBinary()

Retourne la représentation de l’Open Geospatial Consortium (OGC) Well-Known Binary (WELL-) d’un SqlGeometry instance. Cette valeur ne contiendra aucune valeur Z ou M apportée par l'instance.

System_CAPS_pubmethod STAsText()

Retourne la représentation OGC (Open Geospatial Consortium) WKT (Well-Known Text) d'une instance SqlGeometry. Ce texte ne contiendra aucune valeur Z (élévation) ou M (mesure) apportée par l'instance.

System_CAPS_pubmethod STBoundary()

Retourne la limite d'une instance SqlGeometry.

System_CAPS_pubmethod STBuffer(Double)

Retourne un objet géométrique qui représente l'union de tous les points dont la distance à partir d'une instance SqlGeometry est inférieure ou égale à une valeur spécifiée.

System_CAPS_pubmethod STCentroid()

Retourne le centre géométrique d'une instance SqlGeometry qui consiste en un ou plusieurs polygones.

System_CAPS_pubmethod STContains(SqlGeometry)

Spécifie si l'instance SqlGeometry appelante contient complètement un autre SqlGeometry.

System_CAPS_pubmethod STConvexHull()

Retourne un objet qui représente la forme convexe d'une instance SqlGeometry.

System_CAPS_pubmethod STCrosses(SqlGeometry)

Détermine si l'instance SqlGeometry appelante croise l'instance SqlGeometry spécifiée.

System_CAPS_pubmethod STCurveN(Int32)

Retourne la courbe spécifiée d'une instance SqlGeometry qui est de type LineString, CircularString ou CompoundCurve.

System_CAPS_pubmethod STCurveToLine()

Retourne une approximation polygonale d’une SqlGeometry instance qui contient les segments d’arc.

System_CAPS_pubmethod STDifference(SqlGeometry)

Retourne un objet qui représente les points d'une instance SqlGeometry qui ne se trouvent pas dans une autre instance SqlGeometry.

System_CAPS_pubmethod STDimension()

Retourne la dimension maximale d'une instance SqlGeometry.

System_CAPS_pubmethod STDisjoint(SqlGeometry)

Détermine si l'instance SqlGeometry appelante est disjointe lorsqu'elle est comparée au SqlGeometry spécifié.

System_CAPS_pubmethod STDistance(SqlGeometry)

Retourne la distance la plus courte entre un point dans une instance SqlGeometry et un point dans l'instance SqlGeometry spécifiée.

System_CAPS_pubmethod STEndPoint()

Retourne le point de terminaison d’un SqlGeometry instance.

System_CAPS_pubmethod STEnvelope()

Retourne le rectangle englobant aligné sur l'axe minimum de l'instance.

System_CAPS_pubmethod STEquals(SqlGeometry)

Détermine si le SqlGeometry spécifié a un ensemble de points identique au SqlGeometry appelant.

System_CAPS_pubmethod STExteriorRing()

Retourne l'anneau extérieur d'une instance SqlGeometry qui est un polygone.

System_CAPS_pubmethodSystem_CAPS_static STGeomCollFromText(SqlChars, Int32)

Retourne une instance SqlGeometry à partir d'une représentation OGC (Open Geospatial Consortium) WKT (Well-Known Text) augmentée des valeurs Z (élévation) et M (mesure) apportées par l'instance.

System_CAPS_pubmethodSystem_CAPS_static STGeomCollFromWKB(SqlBytes, Int32)

Retourne une instance de collection SqlGeometry à partir d'une représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary).

System_CAPS_pubmethod STGeometryN(Int32)

Retourne le SqlGeometry spécifié dans une collection SqlGeometry.

System_CAPS_pubmethod STGeometryType()

Retourne le nom de type OGC (Open Geospatial Consortium) représenté par une instance géométrique.SqlGeometry

System_CAPS_pubmethodSystem_CAPS_static STGeomFromText(SqlChars, Int32)

Retourne une instance SqlGeometry à partir d'une représentation OGC (Open Geospatial Consortium) WKT (Well-Known Text) augmentée des valeurs Z (élévation) et M (mesure) apportées par l'instance.

System_CAPS_pubmethodSystem_CAPS_static STGeomFromWKB(SqlBytes, Int32)

Retourne un SqlGeometry instance à partir d’une représentation de l’Open Geospatial Consortium (OGC) WKB Well-Known Binary ().

System_CAPS_pubmethod STInteriorRingN(Int32)

Retourne l'anneau intérieur spécifié d'une instance SqlGeometry Polygon.

System_CAPS_pubmethod STIntersection(SqlGeometry)

Retourne un objet qui représente les points où une instance SqlGeometry croise une autre instance SqlGeometry.

System_CAPS_pubmethod STIntersects(SqlGeometry)

Détermine si l'instance SqlGeometry appelante entre en intersection avec un autre SqlGeometry.

System_CAPS_pubmethod STIsClosed()

Détermine si les points de départ et de terminaison du SqlGeometry appelant sont les mêmes.

System_CAPS_pubmethod STIsEmpty()

Indique si l'instance SqlGeometry appelante est vide.

System_CAPS_pubmethod STIsRing()

Détermine si l'instance SqlGeometry appelante est un anneau.

System_CAPS_pubmethod STIsSimple()

Détermine si l'instance SqlGeometry appelante est simple.

System_CAPS_pubmethod STIsValid()

Détermine si l'instance SqlGeometry est bien formée.

System_CAPS_pubmethod STLength()

Retourne la longueur totale des éléments dans une instance SqlGeometry.

System_CAPS_pubmethodSystem_CAPS_static STLineFromText(SqlChars, Int32)

Retourne une instance SqlGeometry à partir d'une représentation OGC (Open Geospatial Consortium) WKT (Well-Known Text) augmentée des valeurs Z (élévation) et M (mesure) apportées par l'instance.

System_CAPS_pubmethodSystem_CAPS_static STLineFromWKB(SqlBytes, Int32)

Retourne une instance SqlGeometry LineString à partir d'une représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary).

System_CAPS_pubmethodSystem_CAPS_static STMLineFromText(SqlChars, Int32)

Retourne une instance SqlGeometry à partir d'une représentation OGC (Open Geospatial Consortium) WKT (Well-Known Text) augmentée des valeurs Z (élévation) et M (mesure) apportées par l'instance.

System_CAPS_pubmethodSystem_CAPS_static STMLineFromWKB(SqlBytes, Int32)

Retourne une instance SqlGeometry MultiLineString à partir d'une représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary).

System_CAPS_pubmethodSystem_CAPS_static STMPointFromText(SqlChars, Int32)

Retourne une instance SqlGeometry à partir d'une représentation OGC (Open Geospatial Consortium) WKT (Well-Known Text) augmentée des valeurs Z (élévation) et M (mesure) apportées par l'instance.

System_CAPS_pubmethodSystem_CAPS_static STMPointFromWKB(SqlBytes, Int32)

Retourne un SqlGeometry instance Point à partir d’une représentation de l’Open Geospatial Consortium (OGC) WKB Well-Known Binary ().

System_CAPS_pubmethodSystem_CAPS_static STMPolyFromText(SqlChars, Int32)

Retourne une instance SqlGeometry à partir d'une représentation OGC (Open Geospatial Consortium) WKT (Well-Known Text) avec des valeurs Z (élévation) et M (mesure) apportées par l'instance.

System_CAPS_pubmethodSystem_CAPS_static STMPolyFromWKB(SqlBytes, Int32)

Retourne une instance SqlGeometry MultiPolygon à partir d'une représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary).

System_CAPS_pubmethod STNumCurves()

Retourne le nombre de courbes dans une dimension SqlGeometry instance.

System_CAPS_pubmethod STNumGeometries()

Retourne le nombre de SqlGeometry qui comprennent une instance SqlGeometry.

System_CAPS_pubmethod STNumInteriorRing()

Retourne le nombre d'anneaux intérieurs d'une instance SqlGeometry Polygon.

System_CAPS_pubmethod STNumPoints()

Retourne la somme du nombre de points dans chacune des figures dans une instance SqlGeometry.

System_CAPS_pubmethod STOverlaps(SqlGeometry)

Détermine si le SqlGeometry spécifié chevauche le SqlGeometry actuel.

System_CAPS_pubmethodSystem_CAPS_static STPointFromText(SqlChars, Int32)

Retourne une instance SqlGeometry à partir d'une représentation OGC (Open Geospatial Consortium) WKT (Well-Known Text) augmentée des valeurs Z (élévation) et M (mesure) apportées par l'instance.

System_CAPS_pubmethodSystem_CAPS_static STPointFromWKB(SqlBytes, Int32)

Retourne un SqlGeometry instance Point à partir d’une représentation de l’Open Geospatial Consortium (OGC) WKB Well-Known Binary ().

System_CAPS_pubmethod STPointN(Int32)

Retourne un point spécifié dans une instance SqlGeometry.

System_CAPS_pubmethod STPointOnSurface()

Retourne un point arbitraire situé à l'intérieur d'une instance SqlGeometry.

System_CAPS_pubmethodSystem_CAPS_static STPolyFromText(SqlChars, Int32)

Retourne une instance SqlGeometry à partir d'une représentation OGC (Open Geospatial Consortium) WKT (Well-Known Text) augmentée des valeurs Z (élévation) et M (mesure) apportées par l'instance.

System_CAPS_pubmethodSystem_CAPS_static STPolyFromWKB(SqlBytes, Int32)

Retourne une instance SqlGeometry Polygon à partir d'une représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary).

System_CAPS_pubmethod STRelate(SqlGeometry, String)

Détermine si le SqlGeometry appelant est associé au SqlGeometry spécifié.

System_CAPS_pubmethod STStartPoint()

Retourne le point de départ d'une instance SqlGeometry.

System_CAPS_pubmethod STSymDifference(SqlGeometry)

Retourne un objet qui représente tous les points qui sont soit une instance SqlGeometry soit dans une autre instance SqlGeometry, mais pas les points qui se trouvent dans les deux instances.

System_CAPS_pubmethod STTouches(SqlGeometry)

Détermine si le SqlGeometry spécifié touche le SqlGeometry actuel.

System_CAPS_pubmethod STUnion(SqlGeometry)

Retourne un objet qui représente l’union entre un SqlGeometry instance avec un autre SqlGeometry instance.

System_CAPS_pubmethod STWithin(SqlGeometry)

Détermine si le SqlGeometry actuel est complètement dans l'instance SqlGeometry spécifiée.

System_CAPS_pubmethod ToString()

Retourne la représentation sous forme de réplication continue en cluster (WKT, Open Geospatial Consortium (OGC) Well-Known Text) d’un SqlGeometry instance augmentée des Z (élévation) et les valeurs M (mesure) apportées par l’instance.(Remplace Object.ToString().)

System_CAPS_pubmethod Write(BinaryWriter)

Écrit une instance SqlGeometry dans un flux binaire.SqlGeometry

Implémentations d’interface explicites

Nom Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod ISqlSpatialGridIndexable.BufferForDistanceQuery(Double, Boolean)

Retourne la mémoire tampon de la requête de distance pour SQL Geometry.

System_CAPS_pubinterfaceSystem_CAPS_privmethod ISqlSpatialGridIndexable.GetBoundingBoxCorners(Double, Double, Double, Double)

Retourne une valeur pour les angles du rectangle englobant pour SQL Geometry.

System_CAPS_pubinterfaceSystem_CAPS_privmethod ISqlSpatialGridIndexable.GetGridCoverage(Boolean, Double, Double, Double, Double, Double, Double, Int32, Int32, Boolean[,], Boolean[,], Int32, Int32, Boolean, Boolean)

Retourne la couverture de la grille pour SQL Geometry.

System_CAPS_pubinterfaceSystem_CAPS_privmethod ISqlSpatialGridIndexable.InteriorBufferForDistanceQuery(Double)

Obtient la mémoire tampon interne de la requête de distance pour SQL Geometry.

Notes

SQL Server 2016 prend en charge un ensemble de méthodes pour le type de données spatiales géométriques. Ces méthodes incluent des méthodes géométriques définies par la norme Open Geospatial Consortium (OGC) et un ensemble d’extensions Microsoft de cette norme.

Cohérence de thread

Tous les membres statiques publics ( Shared en Visual Basic) de ce type sont thread-safe. Les membres d’instance n’ont pas la garantie d’être thread-safe.

Voir aussi

Microsoft.SqlServer.Types espace de noms

Retour au début