按照空间查询所属上庄镇的gsmm数据。
declare
shp clob;num number;
begin
select sde.st_asText(t.shape) into shp from hdyljspatial.hdjd_pg t where t.jdname='上庄镇';
select count(*) into num from hdyljspatial.gsmm g where sde.ST_Contains(sde.st_geomfromtext(shp,22),sde.st_geomfromtext(sde.st_asText(g.shape),22))=1;
dbms_output.put_line(num);
end;
本文介绍了一种使用Oracle数据库存储过程查询特定区域(上庄镇)内的地理空间数据的方法,并统计了该区域内gsmm数据的数量。
4909

被折叠的 条评论
为什么被折叠?



