SqlGeography.GeomFromGml méthode (SqlXml, Int32)
Construit une instance SqlGeography pour une représentation donnée dans le sous-ensemble SQL Server du langage GML (Geography Markup Language).
Espace de noms: Microsoft.SqlServer.Types
Assembly: Microsoft.SqlServer.Types (dans Microsoft.SqlServer.Types.dll)
Syntaxe
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeography GeomFromGml(
SqlXml xml,
int srid
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
static SqlGeography^ GeomFromGml(
SqlXml^ xml,
int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member GeomFromGml :
xml:SqlXml *
srid:int -> SqlGeography
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Shared Function GeomFromGml (
xml As SqlXml,
srid As Integer
) As SqlGeography
Paramètres
xml
Type: System.Data.SqlTypes.SqlXmlEntrée XML à partir de laquelle le langage GML retournera une valeur.
srid
Type: System.Int32Un int expression qui représente la référence spatiale (SRID ID) de l’instance géographique que vous voulez renvoyer.
Valeur de retour
Type: Microsoft.SqlServer.Types.SqlGeography
Valeur SqlGeography construite à partir de l'entrée GML spécifiée.
Notes
Cette méthode lève une exception FormatException si l’entrée n’est pas correctement mise en forme.
Voir aussi
SqlGeography classe
Microsoft.SqlServer.Types espace de noms
Retour au début