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 | |
---|---|---|
SqlGeography() | Initialise une nouvelle instance de la SqlGeography classe. |
Propriétés
Nom | Description | |
---|---|---|
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. |
|
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. |
|
IsNull | Détermine si l'instance SqlGeography est Null. |
|
Lat | Retourne la propriété de latitude de l'instance géographique. |
|
Long | Retourne la propriété de longitude de l'instance géographique. |
|
M | Retourne la valeur M (mesure) de l'instance géographique. |
|
Null | Retourne une propriété en lecture seule qui fournit une instance Null du type SqlGeography. |
|
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. |
|
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 | |
---|---|---|
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. |
|
AsGml() | Retourne la représentation GML (Geography Markup Language) d'une instance SqlGeography. |
|
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. |
|
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. |
|
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. |
|
CurveToLineWithTolerance(Double, Boolean) | Retourne une approximation polygonale d’une SqlGeography instance qui contient les segments d’arc. |
|
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. |
|
EnvelopeAngle() | Retourne l'angle maximal entre le point retourné par EnvelopeCenter et un point dans l'instance SqlGeography, en degrés. |
|
EnvelopeCenter() | Retourne un point qui peut être utilisé comme centre d'un cercle englobant pour l'instance géographique. |
|
Equals(Object) | (Hérité de Object.) |
|
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. |
|
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). |
|
GetHashCode() | (Hérité de Object.) |
|
GetType() | (Hérité de Object.) |
|
InstanceOf(String) | Teste si l'instance SqlGeography est du même type que l'instance spécifiée. |
|
IsValidDetailed() | Retourne un message pour aider à identifier des problèmes de validité avec un objet spatial. |
|
MakeValid() | Convertit une instance geography qui n'est pas valide en instance geography valide avec un type Open Geospatial Consortium (OGC) valide. |
|
MinDbCompatibilityLevel() | Retourne la compatibilité minimale de la base de données qui accepte le SqlGeography type. |
|
NumRings() | Retourne le nombre total d'anneaux dans une instance Polygon. |
|
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). |
|
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). |
|
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. |
|
Populate(IGeographySink110) | Applique une séquence d'appel de type geography à un objet IGeographySink. |
|
Read(BinaryReader) | Lit une représentation binaire d’un geography type dans un SqlGeometry objet. |
|
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. |
|
ReorientObject() | Retourne une instance geography avec des régions intérieures et des régions extérieures interchangées. |
|
RingN(Int32) | Retourne l'anneau spécifié de l'instance SqlGeography : 1 ≤ n ≤ NumRings(). |
|
Serialize() | Utilisé pour envoyer des données spatiales sur le réseau. |
|
ShortestLineTo(SqlGeography) | Retourne la distance la plus courte entre les deux SqlGeographyinstances. |
|
STArea() | Retourne la surface d’exposition totale d’un SqlGeography instance. |
|
STAsBinary() | Retourne la représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary) d'une instance SqlGeography. |
|
STAsText() | Retourne la représentation OGC (Open Geospatial Consortium) WKT (Well-Known Text) d'une instance SqlGeography. |
|
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. |
|
STContains(SqlGeography) | Spécifie si l'instance SqlGeography appelante contient spatialement l'instance SqlGeography passée à la méthode. |
|
STConvexHull() | Retourne un objet qui représente la forme convexe d'une instance SqlGeography. |
|
STCurveN(Int32) | Retourne la courbe spécifiée d'une instance SqlGeography qui est de type LineString, CircularString ou CompoundCurve. |
|
STCurveToLine() | Retourne une approximation polygonale d'une instance SqlGeography qui contient des segments d'arc de cercle. |
|
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. |
|
STDimension() | Retourne la dimension maximale d’un SqlGeography instance |
|
STDisjoint(SqlGeography) | Détermine si l'instance SqlGeography appelante est spatialement disjointe de l'instance SqlGeography spécifiée. |
|
STDistance(SqlGeography) | Retourne la distance la plus courte entre un point dans une instance SqlGeography et un point dans une autre instance SqlGeography. |
|
STEndPoint() | Retourne le point de terminaison d'une instance SqlGeography. |
|
STEquals(SqlGeography) | Détermine si l'instance SqlGeography spécifiée a le même ensemble de points que l'instance SqlGeography appelante. |
|
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. |
|
STGeomCollFromWKB(SqlBytes, Int32) | Retourne une instance GeometryCollection à partir d'une représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary). |
|
STGeometryN(Int32) | Retourne un élément géographique spécifié dans un GeometryCollection ou un de ses sous-types. |
|
STGeometryType() | Retourne le nom de type OGC (Open Geospatial Consortium) représenté par une instance géographique. |
|
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. |
|
STGeomFromWKB(SqlBytes, Int32) | Retourne une instance SqlGeography à partir d’une représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary). |
|
STIntersection(SqlGeography) | Retourne un objet qui représente les points où une instance SqlGeography entre en intersection avec une autre instance SqlGeography. |
|
STIntersects(SqlGeography) | Détermine si l'instance SqlGeography actuelle entre en intersection avec le SqlGeography spécifié. |
|
STIsClosed() | Détermine si l'instance SqlGeography appelante est fermée. |
|
STIsEmpty() | Détermine si l'instance SqlGeography est vide. |
|
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). |
|
STLength() | Retourne la longueur totale des éléments dans une instance SqlGeography ou les instances SqlGeography dans un GeometryCollection. |
|
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. |
|
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. |
|
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. |
|
STMLineFromWKB(SqlBytes, Int32) | Retourne un SqlGeography instance MultiLineString à partir d’une représentation de l’Open Geospatial Consortium (OGC) WKB Well-Known Binary (). |
|
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. |
|
STMPointFromWKB(SqlBytes, Int32) | Retourne une instance SqlGeography MultiPoint à partir d'une représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary). |
|
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. |
|
STMPolyFromWKB(SqlBytes, Int32) | Retourne un SqlGeography instance MultiPolygon à partir d’une représentation de l’Open Geospatial Consortium (OGC) WKB Well-Known Binary (). |
|
STNumCurves() | Retourne le nombre de courbes dans une instance SqlGeography unidimensionnelle. |
|
STNumGeometries() | Retourne le nombre de géométries qui composent une instance SqlGeography. |
|
STNumPoints() | Retourne le nombre total de points dans chacune des figures dans une SqlGeography instance |
|
STOverlaps(SqlGeography) | Retourne 1 si une instance SqlGeography recoupe une autre instance SqlGeography spatialement, ou 0 dans le cas contraire. |
|
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. |
|
STPointFromWKB(SqlBytes, Int32) | Retourne une instance SqlGeography Point à partir d'une représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary). |
|
STPointN(Int32) | Retourne le point spécifié dans une instance SqlGeography. |
|
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. |
|
STPolyFromWKB(SqlBytes, Int32) | Retourne une instance SqlGeography Polygon à partir d'une représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary). |
|
STStartPoint() | Retourne le point de départ d'une instance SqlGeography. |
|
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. |
|
STUnion(SqlGeography) | Retourne un objet qui représente l'union d'une instance SqlGeography avec une autre instance SqlGeography. |
|
STWithin(SqlGeography) | Retourne 1 si une instance SqlGeography est spatialement dans une autre instance SqlGeography ; sinon, retourne 0. |
|
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().) |
|
Write(BinaryWriter) | Écrit un SqlGeography dans un flux binaire. |
Implémentations d’interface explicites
Nom | Description | |
---|---|---|
ISqlSpatialGridIndexable.BufferForDistanceQuery(Double, Boolean) | Retourne la mémoire tampon de la requête de distance pour SQL Geography. |
|
ISqlSpatialGridIndexable.GetBoundingBoxCorners(Double, Double, Double, Double) | Retourne une valeur pour les angles du rectangle englobant pour SQL Geography. |
|
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. |
|
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