为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:达梦8
【操作系统】:win10
【CPU】:
【问题描述】*:一个表里面存为单独的经纬度,希望使用dmgeo.ST_Within函数筛选出在某一个面上的数据。
with equment as (
select id,
dmgeo.ST_PointFromText(to_clob(‘point(’ || longitude || ’ ’ || latitude || ‘)’), 0) as point
from “SDSBXSFZ”.“SDSB_DEFECTIVE_EQUIPMENT”
where longitude > 0 and latitude > 0
)
select *
from equment --where point is not null
where
dmgeo.ST_Within(
point,
dmgeo.ST_PolyFromText(‘polygon((113.371949 23.070154, 113.418517 23.071218, 113.422469 23.0371,
113.370008 23.036302, 113.371949 23.070154))’, 0)) = 1;
总是报非法的参数数据,感觉都没有问题啊,求解答
请问你解决了这个问题吗
看下是不是和这个原因有关:
参考的帖子:https://eco.dameng.com/docs/zh-cn/faq/faq-sql-gramm.html