SpatialEdmFunctions.SpatialBuffer(DbExpression, DbExpression) 方法

定义

创建 DbFunctionExpression,它使用指定参数(该参数必须具有 Edm.Geography 或 Edm.Geometry 和 Edm.Double 结果类型)调用规范“SpatialBuffer”函数。 表达式的结果类型为 Edm.Geometry。

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression SpatialBuffer (this System.Data.Entity.Core.Common.CommandTrees.DbExpression spatialValue, System.Data.Entity.Core.Common.CommandTrees.DbExpression distance);
static member SpatialBuffer : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function SpatialBuffer (spatialValue As DbExpression, distance As DbExpression) As DbFunctionExpression

参数

spatialValue
DbExpression

一个表达式,指定空间值。

distance
DbExpression

一个指定缓冲距离的表达式。

返回

一个新的 DbFunctionExpression,它返回一个几何图形值,该值表示与 spatialValue 之间的距离小于或等于所有点。

适用于