3

我在 t-sql 语句中有以下 where 子句:

where a.CELL_GEOM.STIntersects(
STGeomFromText('POLYGON((-25.43623984375 44.257784519021, 21.62918984375 44.257784519021, 21.62918984375 60.752403080295, -25.43623984375 60.752403080295, -25.43623984375 44.257784519021))', 4326)) = 'true'

该行报告错误:

'STGeomFromText' is not a recognized built-in function name.

如何使用此函数中显示的众所周知的文本值?我只是在 STGeomFromText 中使用了不正确的语法,因为这是我见过的唯一示例。

4

1 回答 1

6

尝试在geometry::文档中使用 like 为函数名称添加前缀?

例如:geometry::STGeomFromText( ...

链接到文档

于 2012-05-30T09:19:31.630 回答