语法
setof record ST_PointValues(raster raster_obj,
integer column_sn,
integer row_sn,
boolean exclude_nodata default true,
out integer band,
out float8 value);
setof record ST_PointValues(raster raster_obj,
float8 x,
float8 y,
boolean exclude_nodata default true,
out integer band,
out float8 value);
参数
参数名称 |
描述 |
raster_obj |
需要裁剪的raster对象。 |
column_sn |
像素所在列号,从左上角点起计算。 |
row_sn |
像素所在行号,从左上角点起计算。 |
x |
像素的经度坐标。 |
y |
像素的纬度坐标。 |
exclude_nodata |
是否返回Nodata值。 如果为true,且像素值为Nodata,则不返回。 |
像素值所在波段号。 |
|
value |
像素值。 |
描述
根据行号或列号以及经纬坐标获得所有波段的像素值。
示例
select * from
( select (st_pointValues(rast, 125.84382034243441 , 47.67709555783107, false)).*
from t_pixel where id = 3) a
ORDER by band;
band | value
------+-------
0 | 66
1 | 87
2 | 28
select * from
( select (st_pointValues(rast, 125 , 47)).*
from t_pixel where id = 3) a
ORDER by band;
band | value
------+-------
0 | 39
1 | 66
2 | 11
内容没看懂? 不太想学习?想快速解决? 有偿解决: 联系专家
阿里云企业补贴进行中: 马上申请
腾讯云限时活动1折起,即将结束: 马上收藏
同尘科技为腾讯云授权服务中心。
购买腾讯云产品享受折上折,更有现金返利:同意关联,立享优惠
转转请注明出处:https://www.yunxiaoer.com/156384.html