首页 / 浏览问题 / 云GIS / 问题详情
iserver terraincalculation/cutfill 填挖计算
4EXP 2024年03月18日

cutFillType:"REGION3D",
                // 填挖方对象为三维面对象
                region3D: new maplibregl.supermap.Geometry3D({
                    points:res,
                    rotationX: 0.0,
                    rotationY: 0.0,
                    rotationZ: 0.0,
                    scaleX: 0.0,
                    scaleY: 0.0,
                    scaleZ: 0.0,

                    type: "REGION3D",
                })
 

这几个参数配置有没有用呢,基于三维填挖的计算

1个回答

您好,调用iserver的REST API时对资源构造post请求,请求参数如下:

{

"cutFillType":"REGION3D",

"region3D":"{\"bounds\":{\"bottom\":39.5,\"center\":{\"x\":116.2,\"y\":40.0},\"height\":1.0,\"left\":115.4,\"leftBottom\":{\"x\":115.4,\"y\":39.5},\"right\":117.0,\"rightTop\":{\"x\":117.0,\"y\":40.5},\"top\":40.5,\"valid\":true,\"width\":1.6},\"id\":0,\"parts\":[4],\"points\":[{\"x\":115.4,\"y\":40.0,\"z\":-5.0},{\"x\":116.4,\"y\":39.5,\"z\":0.0},{\"x\":117.0,\"y\":40.5,\"z\":5.0},{\"x\":115.4,\"y\":40.0,\"z\":-5.0}],\"rotationX\":0.0,\"rotationY\":0.0,\"rotationZ\":0.0,\"scaleX\":0.0,\"scaleY\":0.0,\"scaleZ\":0.0,\"type\":\"REGION3D\"}",

"resultDataset":"cutfill",

"buildPyramid":true,

"deleteExistResultDataset":true

}

和maplibregl API需要区分开,maplibregl接口请参考:iClient for MapLibreGL API (supermap.io)

3,143EXP 2024年03月19日
...