首页 / 浏览问题 / Web / 问题详情
数据服务里像素值查询如何查询直线上的值
6月30日, 2020
数据服务里像素值查询如何查询直线上的值?

示例里只给出了,多边形,圆形和长方形的参数写法,直线如何写?

矩形范围范例:
{"leftBottom":{"x":112.351881,"y":34.663401},"rightTop":{"x":113.361881,"y":35.673401}}

多边形范围范例(不小于三条边):
{"points": [{"x": 107.669629,"y": 32.888868},{"x": 108.012838,"y": 33.594138},
{ "x": 108.674593, "y": 33.281041},{ "x": 107.669629,"y": 32.888868}]}

圆形范围范例(中心点和半径):
{"circle":{"centerPoint":{"x":112.351881,"y":35.673401},"radius": 1}}

1个回答

您好,目前gridValues操作只支持

地理范围。支持查询矩形、多边形、圆形范围。例如:
1. 矩形范围:
{"leftBottom":{"x":112.351881,"y":34.663401},"rightTop":{"x":113.361881,"y":35.673401}}
2. 多边形范围,需指定不少于三条边:
{"points": [{"x": 107.669629,"y": 32.888868},{"x": 108.012838,"y": 33.594138},
{ "x": 108.674593, "y": 33.281041},{ "x": 107.669629,"y": 32.888868}]}
3. 圆形范围,需指定中心点和半径:
{"circle":{"centerPoint":{"x":112.351881,"y":35.673401},"radius": 1}}
注:如果该参数设置范围过大,即该参数所表达的栅格个数不能超过50万,否则系统将报超限的错误。可根据以下计算式来确定该参数的最大范围:
地理范围=数据集范围*50万/(栅格行数*栅格列数)
阳俊林  (3,347分)  名扬四海
6月30日, 2020
...