SqlGeometry.STPointFromText, méthode (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.
Espace de noms: Microsoft.SqlServer.Types
Assembly: Microsoft.SqlServer.Types (dans Microsoft.SqlServer.Types.dll)
Syntaxe
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeometry STPointFromText(
SqlChars pointTaggedText,
int srid
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
static SqlGeometry^ STPointFromText(
SqlChars^ pointTaggedText,
int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member STPointFromText :
pointTaggedText:SqlChars *
srid:int -> SqlGeometry
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Shared Function STPointFromText (
pointTaggedText As SqlChars,
srid As Integer
) As SqlGeometry
Paramètres
pointTaggedText
Type: System.Data.SqlTypes.SqlCharsReprésentation WKT de l'instance SqlGeometry Point à retourner.
srid
Type: System.Int32Expression int qui représente l'ID de référence spatial (SRID) de l'instance SqlGeometry Point à retourner.
Valeur de retour
Type: Microsoft.SqlServer.Types.SqlGeometry
Instance SqlGeometry construite à partir de la représentation WKT spécifiée.
Notes
Cette méthode lève un FormatException si l'entrée n'est pas correctement mise en forme.
Ce membre est static.
Voir aussi
SqlGeometry, classe
Microsoft.SqlServer.Types, espace de noms
Retour au début