首页 / 浏览问题 / 三维GIS / 问题详情
用超图发布服务,用js代码怎样得到建筑物信息
84EXP 2017年08月31日
var queryServiceUrl =
     var getFeatureParam, getFeatureBySQLService, getFeatureBySQLParams;
     var queryDatasetName="";

     getFeatureParam = new SuperMap.REST.FilterParameter({
         name: queryDatasetName + "@3DDataset",
         attributeFilter: "SmID ="+buildno
     });
     getFeatureBySQLParams = new SuperMap.REST.GetFeaturesBySQLParameters({
         queryParameter: getFeatureParam,
         toIndex:-1,
         datasetNames: ["3DDataset:" + queryDatasetName]
     });
     getFeatureBySQLService = new SuperMap.REST.GetFeaturesBySQLService(queryServiceUrl, {
         eventListeners: {"processCompleted": onQueryComplete, "processFailed": processFailed}});

     getFeatureBySQLService.processAsync(getFeatureBySQLParams);

谢谢大神了
问题关闭原因: resolved

1个回答

您好,“queryDatasetName”表示您要查询的数据集的名称。您可以参考这个范例:

http://support.supermap.com.cn:8090/iserver/iClient/for3D/plugin/samplecode/samplecode/samples/Query3D/QueryService.html

本地也有这个范例:D:\SuperMap\SuperMapiServer8C\iClient\for3D\plugin\samplecode\samplecode\samples(安装路径下)

11EXP 2017年09月01日
...