首页 > 代码库 > Supermap iserver client 空间查询关联属性过滤示例

Supermap iserver client 空间查询关联属性过滤示例

点查询并根据属性条件过滤示例代码

//关联外表

var joinItem=new SuperMap.REST.JoinItem({

    foreignTableName: "V_REGION_LAND",
    joinFilter: "BBS_PARCEL.CADASTRALNO = V_REGION_LAND.CADASTRALNO ",
    joinType: "INNERJOIN"
    });
       var queryParam, queryByGeometryParameters, queryService;
       queryParam = new SuperMap.REST.FilterParameter(
        {
        name: "BBS_PARCEL@grid_sysdb",
        joinItems:joinItem,
        attributeFilter:" V_REGION_LAND.FJBM="+_disCode//外表条件过滤
       });
       queryByGeometryParameters = new SuperMap.REST.QueryByGeometryParameters({
           queryParams: [queryParam],
           geometry: drawGeometryArgs.feature.geometry,
           spatialQueryMode: SuperMap.REST.SpatialQueryMode.INTERSECT
       });

Supermap iserver client 空间查询关联属性过滤示例