首页 / 浏览问题 / WebGIS / 问题详情
webgl如何调用iserver中发布数据的接口进行查询
57EXP 2021年06月08日

如何查询某一个图层里面的数据

1个回答

6,087EXP 2021年06月08日
有这方面相关是学习视频嘛?这样看有点不太懂
学习视频暂时没有

featureResults资源里面查询的话怎么使用呢?带查询数据集那些分别表示什么意思呢,麻烦啦 谢谢

var sqlParameter = {
                "datasetNames": ["二维数据:Building"],
                getFeatureMode: "SQL",
                queryParameter: {
                    attributeFilter: sqlStr
                }
            };
            var url = "http://www.supermapol.com/realspace/services/data-cbd/rest/data/featureResults.rjson?returnContent=true";
            var queryData = JSON.stringify(sqlParameter);

            $.ajax({
                type: "post",
                url: url,
                data: queryData,
                success: function (result) {
                    var resultObj = JSON.parse(result);
                    console.log(resultObj);
                    if (resultObj.featureCount > 0) {
                        onQueryComplete(resultObj.features);
                    }
                },
                error: function (msg) {
                    console.log(msg);
                },
                // complete: function () {
                //     console.log("complete");
                // }
            })

sql查询参照这个查询方式去写
好 谢谢
...