計算視點在情境中的可視表面。
文法
meshgeom ST_ComputeViewShedSurface(scene sc, cstring viewpoint);傳回值
返回一個meshgeom對象。
參數
參數名稱 | 描述 |
sc | scene對象。 |
viewpoint | 視點資訊。 |
描述
根據輸入的scene對象、視點資訊計算視點在情境中的可視表面(scene對象中可見的三角面片),視點資訊的JSON格式與ST_ComputeFrustum函數中一致。樣本圖如下:
scene對象

可視表面

樣本
SELECT ST_NumPatches(ST_ComputeViewShedSurface(scene, '{"x" : 2938, "y" : 750, "z" : 90, "h" : 1.8, "azimuth" : 90, "pitch" : -35, "horizontalFov" : 90, "verticalFov" : 60, "distance" : 600, "depthMapSize" : 128}')) from t;
--------
10451