js空间查询 wmts的地图服务

0 投票
function drawCompleted(geometryEve) {
    var feature=new SuperMap.Feature.Vector();
    feature.geometry=geometryEve.feature.geometry;
    pointLayer.addFeatures(feature);

    var queryParam, queryByGeometryParameters, queryService;
    queryParam = new SuperMap.REST.FilterParameter({name: "Capitals@World.1"});
    queryByGeometryParameters = new SuperMap.REST.QueryByGeometryParameters({
        queryParams: [queryParam],
        geometry: geometryEve.feature.geometry,
        spatialQueryMode: SuperMap.REST.SpatialQueryMode.INTERSECT
    });
//url1为天地图服务地址
    queryService = new SuperMap.REST.QueryByGeometryService(url1, {
        eventListeners: {
            "processCompleted": processCompleted,
            "processFailed": processFailed
        }
    });
    queryService.processAsync(queryByGeometryParameters);
}

报错:VM70:1 GET http://t0.tianditu.com/vec_c/wmts/queryResults.jsonp?returnContent=true&_method=POST&requestEntity=%7B%27queryMode%27%3A%27SpatialQuery%27%2C%27queryParameters%27%3A%7B%27customParams%27%3Anull%2C%27expectCount%27%3A100000%2C%27networkType%27%3A%22LINE%22%2C%27queryOption%27%3A%22ATTRIBUTEANDGEOMETRY%22%2C%27queryParams%27%3A%5B%7B%27name%27%3A%22Capitals%40World.1%22%2C%27attributeFilter%27%3Anull%2C%27joinItems%27%3Anull%2C%27linkItems%27%3Anull%2C%27ids%27%3Anull%2C%27orderBy%27%3Anull%2C%27groupBy%27%3Anull%2C%27fields%27%3Anull%7D%5D%2C%27startRecord%27%3A0%2C%27prjCoordSys%27%3Anull%2C%27holdTime%27%3A10%2C%27returnCustomResult%27%3Afalse%7D%2C%27geometry%27%3A%7B%27id%27%3A0%2C%27style%27%3Anull%2C%27parts%27%3A%5B5%5D%2C%27points%27%3A%5B%7B%27id%27%3A%22SuperMap.Geometry.Point_397%22%2C%27x%27%3A108.3694442749%2C%27y%27%3A22.893040466309%2C%27tag%27%3Anull%2C%27bounds%27%3Anull%2C%27SRID%27%3Anull%7D%2C%7B%27id%27%3A%22SuperMap.Geometry.Point_398%22%2C%27x%27%3A108.4662612915%2C%27y%27%3A22.807209777832%2C%27tag%27%3Anull%2C%27bounds%27%3Anull%2C%27SRID%27%3Anull%7D%2C%7B%27id%27%3A%22SuperMap.Geometry.Point_399%22%2C%27x%27%3A108.36910095215%2C%27y%27%3A22.733052062988%2C%27tag%27%3Anull%2C%27bounds%27%3Anull%2C%27SRID%27%3Anull%7D%2C%7B%27id%27%3A%22SuperMap.Geometry.Point_400%22%2C%27x%27%3A108.29253997803%2C%27y%27%3A22.79382019043%2C%27tag%27%3Anull%2C%27bounds%27%3Anull%2C%27SRID%27%3Anull%7D%2C%7B%27id%27%3A%22SuperMap.Geometry.Point_401%22%2C%27x%27%3A108.3694442749%2C%27y%27%3A22.893040466309%2C%27tag%27%3Anull%2C%27bounds%27%3Anull%2C%27SRID%27%3Anull%7D%5D%2C%27type%27%3A%22REGION%22%2C%27prjCoordSys%27%3A%7B%27epsgCode%27%3Anull%7D%7D%2C%27spatialQueryMode%27%3A%22INTERSECT%22%7D&sectionCount=2&sectionIndex=0&jsonpUserID=1524711632010 net::ERR_ABORTED

4月 26, 2018 分类:  330次浏览 | 用户: cmccmz (6 分)

1个回答

0 投票
您好,通过WMTS服务添加的地图是瓦片地图,没有数据,需要发布相应的数据服务,再进行数据集查询,参考示范程序中查询-数据集查询中的代码。
4月 26, 2018 用户: 于浩 名扬四海 (4,003 分)
...