SqlGeometry.Parse 方法 (SqlString)
从开放地理空间信息联盟 (OGC) 熟知文本 (WKT) 表示形式返回 SqlGeometry 实例。
命名空间: Microsoft.SqlServer.Types
程序集: Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)
语法
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeometry Parse(
SqlString s
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
static SqlGeometry^ Parse(
SqlString s
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member Parse :
s:SqlString -> SqlGeometry
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Shared Function Parse (
s As SqlString
) As SqlGeometry
参数
s
Type: System.Data.SqlTypes.SqlString指定您要返回的 SqlGeometry 实例的 WKT 表示形式。
返回值
Type: Microsoft.SqlServer.Types.SqlGeometry
从所提供的 WKT 表示形式解释的 SqlGeometry 实例。
如果 s 为 null,则返回 null。
备注
Parse 等效于 STGeomFromText, ,出现异常,假定的空间引用 ID (SRID) 为 0 作为参数。
输入值可以根据需要包含 Z(标高)和 M(度量)值。
此成员是 static。
另请参阅
SqlGeometry 类
Microsoft.SqlServer.Types 命名空间
返回页首