SqlGeometry.STGeomFromText(SqlChars, Int32) Método

Definição

Retorna uma SqlGeometry instância de uma representação WKT (Open Geospatial Consortium) Texto Bem Conhecido (WKT) aumentada com quaisquer valores Z (elevação) e M (medida) transportados pela instância.

[Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)]
public static Microsoft.SqlServer.Types.SqlGeometry STGeomFromText(System.Data.SqlTypes.SqlChars geometryTaggedText, int srid);
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)>]
static member STGeomFromText : System.Data.SqlTypes.SqlChars * int -> Microsoft.SqlServer.Types.SqlGeometry
Public Shared Function STGeomFromText (geometryTaggedText As SqlChars, srid As Integer) As SqlGeometry

Parâmetros

geometryTaggedText
SqlChars

A representação WKT da SqlGeometry instância que você deseja retornar.

srid
Int32

Uma expressão int que representa a SRID (ID de referência espacial) da SqlGeometry instância que você deseja retornar.

Retornos

Uma SqlGeometry instância construída a partir da representação WKT especificada.

Atributos

Aplica-se a