空间数据处理与分析:从基础概念到实际应用
1. 三角不规则网络(TIN)与点云数据处理
在空间数据处理中,三角不规则网络(TIN)和点云数据是重要的组成部分。对于TIN数据,我们可以通过以下SQL语句获取每个块中的三角形集合:
SQL> SELECT blk_id, SDO_TIN_PKG.TO_GEOMETRY(
r.points, -- LOB containing the points
r.triangles, -- LOB containing the triangles
r.num_points, -- # of points in the LOB
r.num_triangles, -- # of triangles in the LOB
2, -- Index dimensionality: dim value in SDO_GTYPE
-- of extent in SDO_TIN_PKG.INIT
3, -- Total dimensionality of the points in the LOB
8307 -- SRID
) FROM qryres r;
如果我们只需要查询中返回的点的ID并存储在 RESQRY 表中,可以使用 SDO_PC_PKG.GET_PT_IDS 函数。该函数返回一个数字数组,其中每对数字表示一个点的 <ptn_id, pt_id> 值。我们可以将这个信息与 RESTAB 表连接,以获取给定查询窗口中所有相交点的所有属性
超级会员免费看
订阅专栏 解锁全文

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



