SqlGeometry.STPolyFromText(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 STPolyFromText(System.Data.SqlTypes.SqlChars polygonTaggedText, int srid);
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)>]
static member STPolyFromText : System.Data.SqlTypes.SqlChars * int -> Microsoft.SqlServer.Types.SqlGeometry
Public Shared Function STPolyFromText (polygonTaggedText As SqlChars, srid As Integer) As SqlGeometry

Parâmetros

polygonTaggedText
SqlChars

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

srid
Int32

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

Retornos

Um SqlGeometry objeto construído a partir da representação WKT especificada.

Atributos

Aplica-se a