QueryService service = new QueryService("http://172.188.23.111:3090");
ServiceQueryParameter parameter = new ServiceQueryParameter();
parameter.setQueryServiceName("map-Mobile/rest");
parameter.setQueryMapName("Mobile");
parameter.setQueryLayerName("GasZhongYaGuanXian@test");
parameter.setQueryRecordStart(0);
parameter.setQueryOption(QueryOption.ATTRIBUTEANDGEOMETRY);
parameter.setQueryBounds(new Rectangle2D(11765188.98 ,3651574.96,11812315.84 ,3700065.02 ));
parameter.setAttributeFilter("SMID>0");
service.query(parameter, QueryMode.BoundsQuery);
这是范围查询的代码
这是查询的图层
但是回调返回的记录集是null,换成sql查询可以返回数据