SqlGeography.STGeomCollFromText 方法 (SqlChars, Int32)

 

从开放地理空间联盟 (OGC) 熟知文本 (WKT) 表示形式返回地域实例,增加了该实例传递的任何 Z(标高)和 M(度量)值。

命名空间:   Microsoft.SqlServer.Types
程序集:  Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)

语法

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeography STGeomCollFromText(
    SqlChars geometryCollectionTaggedText,
    int srid
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
static SqlGeography^ STGeomCollFromText(
    SqlChars^ geometryCollectionTaggedText,
    int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member STGeomCollFromText : 
        geometryCollectionTaggedText:SqlChars *
        srid:int -> SqlGeography
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Shared Function STGeomCollFromText (
    geometryCollectionTaggedText As SqlChars,
    srid As Integer
) As SqlGeography

参数

  • geometryCollectionTaggedText
    Type: System.Data.SqlTypes.SqlChars

    WKT 表示形式 geography 你想要返回的实例。 geometrycollection_tagged_text 是 nvarchar(max) 表达式。

  • srid
    Type: System.Int32

    一个 int 表达式,它表示您希望返回的地域实例的空间引用 ID (SRID)。

返回值

Type: Microsoft.SqlServer.Types.SqlGeography

一个地域实例。

备注

返回的地域实例的 OGC 类型 STGeomCollFromText 设置为相应的 WKT 输入。

如果输入无效,则此方法将引发 ArgumentException。

另请参阅

SqlGeography 类
Microsoft.SqlServer.Types 命名空间

返回页首