您好,调用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)