在使用iObject .NET 10i时,查询出来的上限是1000条,实际上有1万多条
DatasetVector datasetVector = datasource.Datasets[0] as DatasetVector;
QueryParameter query = new QueryParameter();
query.AttributeFilter = "";
query.SpatialQueryMode = SpatialQueryMode.Intersect;
query.SpatialQueryObject = datasetVector.Bounds;
Recordset recordset = datasetVector.Query(query);
MessageBox.Show(recordset.RecordCount+"");
而使用下面的代码是能够查询出正确的记录数
DatasetVector datasetVector = datasource.Datasets[0] as DatasetVector;
QueryParameter query = new QueryParameter();
query.AttributeFilter = "";
query.SpatialQueryMode = SpatialQueryMode.None;
query.SpatialQueryObject = datasetVector.Bounds;
Recordset recordset = datasetVector.Query(query);
MessageBox.Show(recordset.RecordCount+"");
这个是为什么?怎么解决?