SpatialEdmFunctions.GeometryFromText 方法

定义

创建一个 DbFunctionExpression 调用规范“GeometryFromText”函数的函数。

重载

名称 说明
GeometryFromText(DbExpression)

创建一个 DbFunctionExpression 调用规范“GeometryFromText”函数的指定参数,该函数必须具有字符串结果类型。 表达式的结果类型为 Edm.Geometry。 其值具有基础提供程序的默认坐标系 ID(SRID)。

GeometryFromText(DbExpression, DbExpression)

使用指定的参数创建一个 DbFunctionExpression 调用规范“GeometryFromText”函数。 wellKnownText 必须具有字符串结果类型,而 coordinateSystemId 必须具有整数数值结果类型。 表达式的结果类型为 Edm.Geometry。

GeometryFromText(DbExpression)

创建一个 DbFunctionExpression 调用规范“GeometryFromText”函数的指定参数,该函数必须具有字符串结果类型。 表达式的结果类型为 Edm.Geometry。 其值具有基础提供程序的默认坐标系 ID(SRID)。

public:
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ GeometryFromText(System::Data::Common::CommandTrees::DbExpression ^ wellKnownText);
public static System.Data.Common.CommandTrees.DbFunctionExpression GeometryFromText(System.Data.Common.CommandTrees.DbExpression wellKnownText);
static member GeometryFromText : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
Public Function GeometryFromText (wellKnownText As DbExpression) As DbFunctionExpression

参数

wellKnownText
DbExpression

提供几何图形值的已知文本表示形式的表达式。

返回

一个新的 DbFunctionExpression,基于指定的值返回新的几何图形值。

例外

wellKnownText

wellKnownText

适用于

GeometryFromText(DbExpression, DbExpression)

使用指定的参数创建一个 DbFunctionExpression 调用规范“GeometryFromText”函数。 wellKnownText 必须具有字符串结果类型,而 coordinateSystemId 必须具有整数数值结果类型。 表达式的结果类型为 Edm.Geometry。

public:
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ GeometryFromText(System::Data::Common::CommandTrees::DbExpression ^ wellKnownText, System::Data::Common::CommandTrees::DbExpression ^ coordinateSystemId);
public static System.Data.Common.CommandTrees.DbFunctionExpression GeometryFromText(System.Data.Common.CommandTrees.DbExpression wellKnownText, System.Data.Common.CommandTrees.DbExpression coordinateSystemId);
static member GeometryFromText : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
Public Function GeometryFromText (wellKnownText As DbExpression, coordinateSystemId As DbExpression) As DbFunctionExpression

参数

wellKnownText
DbExpression

提供几何图形值的已知文本表示形式的表达式。

coordinateSystemId
DbExpression

一个表达式,该表达式提供几何图形值的坐标系的坐标系 ID(SRID)。

返回

一个新的 DbFunctionExpression,基于指定的值返回新的几何图形值。

例外

wellKnownText coordinateSystemId

wellKnownText coordinateSystemId

适用于