注册

where后面使用dmgeo.ST_Within函数问题

papi林 2021/08/30 2484 2

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【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;

image.png

image.png

总是报非法的参数数据,感觉都没有问题啊,求解答

回答 0
暂无回答
扫一扫
联系客服