移动端iOS 10i 搜索图层数据 查找不到数据
for (int i=0; i<layerArr.count; i++) {
Layer *layer = [m_mapControl.map.layers getLayerWithName:[NSString stringWithFormat:@"%@@SHP",[self returnsLayerString:layerArr[i]]]];
[layer.dataset open];
DatasetVector *datasetVector =( DatasetVector *)layer.dataset;
QueryParameter *parameter = [[QueryParameter alloc]init];
parameter.cursorType = DYNAMIC;
parameter.attriButeFilter = [NSString stringWithFormat:@" NAME LIKE '%@%@%@'",@"%",searchString,@"%"];
parameter.spatialQueryMode = SQM_IDENTITY;
Recordset *recordset = [datasetVector query:parameter];
NSLog(@"---%@",[recordset recordCount]);
}我的查询是这样写的 确定图层数据里面包含所搜索的数据名称