SqlGeography classe

 

Le type SqlGeography représente des données dans un système de coordonnées géodésiques (ellipsoïdales).

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.SqlGeography

Syntaxe

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

Constructeurs

Nom Description
System_CAPS_pubmethod SqlGeography()

Initialise une nouvelle instance de la SqlGeography 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

Détermine si l'instance SqlGeography est Null.

System_CAPS_pubproperty Lat

Retourne la propriété de latitude de l'instance géographique.

System_CAPS_pubproperty Long

Retourne la propriété de longitude de l'instance géographique.

System_CAPS_pubproperty M

Retourne la valeur M (mesure) de l'instance géographique.

System_CAPS_pubpropertySystem_CAPS_static Null

Retourne une propriété en lecture seule qui fournit une instance Null du type SqlGeography.

System_CAPS_pubproperty STSrid

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

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 la représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary) d'une instance SqlGeography augmentée des valeurs Z (élévation) et M (mesure) apportées par l'instance.

System_CAPS_pubmethod AsGml()

Retourne la représentation GML (Geography Markup Language) d'une instance SqlGeography.

System_CAPS_pubmethod AsTextZM()

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

System_CAPS_pubmethod BufferWithCurves(Double)

Retourne une instance SqlGeography qui représente l'ensemble de tous les points dont la distance à partir de l'instance appelante SqlGeography est inférieure ou égale au paramètre distance.

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 d'une instance SqlGeography 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 SqlGeography 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. Permet d'envoyer des données spatiales sur le réseau ou de les lire à partir de fichiers.

System_CAPS_pubmethod EnvelopeAngle()

Retourne l'angle maximal entre le point retourné par EnvelopeCenter et un point dans l'instance SqlGeography, en degrés.

System_CAPS_pubmethod EnvelopeCenter()

Retourne un point qui peut être utilisé comme centre d'un cercle englobant pour l'instance géographique.

System_CAPS_pubmethod Equals(Object)

(Hérité de Object.)

System_CAPS_pubmethod Filter(SqlGeography)

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

System_CAPS_pubmethodSystem_CAPS_static GeomFromGml(SqlXml, Int32)

Construit une instance SqlGeography pour une représentation donnée dans le sous-ensemble SQL Server du langage GML (Geography 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 SqlGeography 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 geography qui n'est pas valide en instance geography valide 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 SqlGeography type.

System_CAPS_pubmethod NumRings()

Retourne le nombre total d'anneaux dans une instance Polygon.

System_CAPS_pubmethodSystem_CAPS_static Parse(SqlString)

Retourne un SqlGeography instance à partir d’une représentation sous forme de réplication continue en cluster (WKT, Open Geospatial Consortium (OGC) Well-Known Text).

System_CAPS_pubmethodSystem_CAPS_static Point(Double, Double, Int32)

Construit une instance SqlGeography qui représente une instance Point à partir de ses valeurs x et y et un ID de référence spatial (SRID).

System_CAPS_pubmethod Populate(IGeographySink)

Obsolète. Applique une séquence d'appel de type geography à un objet IGeographySink. La séquence d'appel est un ensemble de figures, de lignes et de points pour les types geography.

System_CAPS_pubmethod Populate(IGeographySink110)

Applique une séquence d'appel de type geography à un objet IGeographySink.

System_CAPS_pubmethod Read(BinaryReader)

Lit une représentation binaire d’un geography type dans un SqlGeometry objet.

System_CAPS_pubmethod Reduce(Double)

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

System_CAPS_pubmethod ReorientObject()

Retourne une instance geography avec des régions intérieures et des régions extérieures interchangées.

System_CAPS_pubmethod RingN(Int32)

Retourne l'anneau spécifié de l'instance SqlGeography : 1 ≤ n ≤ NumRings().

System_CAPS_pubmethod Serialize()

Utilisé pour envoyer des données spatiales sur le réseau.

System_CAPS_pubmethod ShortestLineTo(SqlGeography)

Retourne la distance la plus courte entre les deux SqlGeographyinstances.

System_CAPS_pubmethod STArea()

Retourne la surface d’exposition totale d’un SqlGeography instance.

System_CAPS_pubmethod STAsBinary()

Retourne la représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary) d'une instance SqlGeography.

System_CAPS_pubmethod STAsText()

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

System_CAPS_pubmethod STBuffer(Double)

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

System_CAPS_pubmethod STContains(SqlGeography)

Spécifie si l'instance SqlGeography appelante contient spatialement l'instance SqlGeography passée à la méthode.

System_CAPS_pubmethod STConvexHull()

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

System_CAPS_pubmethod STCurveN(Int32)

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

System_CAPS_pubmethod STCurveToLine()

Retourne une approximation polygonale d'une instance SqlGeography qui contient des segments d'arc de cercle.

System_CAPS_pubmethod STDifference(SqlGeography)

Retourne un objet qui représente les points à partir d’un SqlGeography qui ne se trouvent pas dans une autre instance SqlGeography instance.

System_CAPS_pubmethod STDimension()

Retourne la dimension maximale d’un SqlGeography instance

System_CAPS_pubmethod STDisjoint(SqlGeography)

Détermine si l'instance SqlGeography appelante est spatialement disjointe de l'instance SqlGeography spécifiée.

System_CAPS_pubmethod STDistance(SqlGeography)

Retourne la distance la plus courte entre un point dans une instance SqlGeography et un point dans une autre instance SqlGeography.

System_CAPS_pubmethod STEndPoint()

Retourne le point de terminaison d'une instance SqlGeography.

System_CAPS_pubmethod STEquals(SqlGeography)

Détermine si l'instance SqlGeography spécifiée a le même ensemble de points que l'instance SqlGeography appelante.

System_CAPS_pubmethodSystem_CAPS_static STGeomCollFromText(SqlChars, Int32)

Retourne une instance géographique à 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 GeometryCollection à partir d'une représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary).

System_CAPS_pubmethod STGeometryN(Int32)

Retourne un élément géographique spécifié dans un GeometryCollection ou un de ses sous-types.

System_CAPS_pubmethod STGeometryType()

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

System_CAPS_pubmethodSystem_CAPS_static STGeomFromText(SqlChars, Int32)

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

System_CAPS_pubmethodSystem_CAPS_static STGeomFromWKB(SqlBytes, Int32)

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

System_CAPS_pubmethod STIntersection(SqlGeography)

Retourne un objet qui représente les points où une instance SqlGeography entre en intersection avec une autre instance SqlGeography.

System_CAPS_pubmethod STIntersects(SqlGeography)

Détermine si l'instance SqlGeography actuelle entre en intersection avec le SqlGeography spécifié.

System_CAPS_pubmethod STIsClosed()

Détermine si l'instance SqlGeography appelante est fermée.

System_CAPS_pubmethod STIsEmpty()

Détermine si l'instance SqlGeography est vide.

System_CAPS_pubmethod STIsValid()

Spécifie si une instance geography présente une forme correcte et est reconnue comme objet geography valide selon son type OGC (Open Geospatial Consortium).

System_CAPS_pubmethod STLength()

Retourne la longueur totale des éléments dans une instance SqlGeography ou les instances SqlGeography dans un GeometryCollection.

System_CAPS_pubmethodSystem_CAPS_static STLineFromText(SqlChars, Int32)

Retourne une instance SqlGeography à 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 SqlGeography à 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 STMLineFromText(SqlChars, Int32)

Retourne une instance SqlGeography à 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 un SqlGeography instance MultiLineString à partir d’une représentation de l’Open Geospatial Consortium (OGC) WKB Well-Known Binary ().

System_CAPS_pubmethodSystem_CAPS_static STMPointFromText(SqlChars, Int32)

Retourne une instance SqlGeography à 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 une instance SqlGeography MultiPoint à partir d'une représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary).

System_CAPS_pubmethodSystem_CAPS_static STMPolyFromText(SqlChars, Int32)

Retourne une instance SqlGeography à 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 STMPolyFromWKB(SqlBytes, Int32)

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

System_CAPS_pubmethod STNumCurves()

Retourne le nombre de courbes dans une instance SqlGeography unidimensionnelle.

System_CAPS_pubmethod STNumGeometries()

Retourne le nombre de géométries qui composent une instance SqlGeography.

System_CAPS_pubmethod STNumPoints()

Retourne le nombre total de points dans chacune des figures dans une SqlGeography instance

System_CAPS_pubmethod STOverlaps(SqlGeography)

Retourne 1 si une instance SqlGeography recoupe une autre instance SqlGeography spatialement, ou 0 dans le cas contraire.

System_CAPS_pubmethodSystem_CAPS_static STPointFromText(SqlChars, Int32)

Retourne une instance SqlGeography à 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 une instance SqlGeography Point à partir d'une représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary).

System_CAPS_pubmethod STPointN(Int32)

Retourne le point spécifié dans une instance SqlGeography.

System_CAPS_pubmethodSystem_CAPS_static STPolyFromText(SqlChars, Int32)

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

System_CAPS_pubmethodSystem_CAPS_static STPolyFromWKB(SqlBytes, Int32)

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

System_CAPS_pubmethod STStartPoint()

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

System_CAPS_pubmethod STSymDifference(SqlGeography)

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

System_CAPS_pubmethod STUnion(SqlGeography)

Retourne un objet qui représente l'union d'une instance SqlGeography avec une autre instance SqlGeography.

System_CAPS_pubmethod STWithin(SqlGeography)

Retourne 1 si une instance SqlGeography est spatialement dans une autre instance SqlGeography ; sinon, retourne 0.

System_CAPS_pubmethod ToString()

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

System_CAPS_pubmethod Write(BinaryWriter)

Écrit un SqlGeography dans un flux binaire.

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 Geography.

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

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

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 grille de SQL Geography.

System_CAPS_pubinterfaceSystem_CAPS_privmethod ISqlSpatialGridIndexable.InteriorBufferForDistanceQuery(Double)

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

Notes

SQL Server prend en charge un ensemble de méthodes pour le type de données spatiales geography. Ces méthodes incluent des méthodes de géographie 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