详情页标题前

阿里云RDS数据库ST_PointValues-云淘科技

详情页1

获得所有波段的像素

语法

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,则不返回。

band

像素值所在波段号。

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

(0)
上一篇 2023年12月9日
下一篇 2023年12月9日
详情页2

相关推荐

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信
本站为广大会员提供阿里云、腾讯云、华为云、百度云等一线大厂的购买,续费优惠,保证底价,买贵退差。