AnsweredAssumed Answered

Select features from a Feature Class

Question asked by shaningesri on Oct 11, 2013
Latest reply on Oct 11, 2013 by ldonahue
For Feature Class in a GDB, I queried in Oracle SQL Developer:
select * from RailLRSRoutes where RouteName = 'A1'
and got 12 records returned.  Got the same results using Definition Query in ArcMap.
In the piece of code below:
            IQueryFilter queryFilter = new QueryFilterClass();
            queryFilter.WhereClause = "RouteName = 'A1' ";
            IDataset dataset = (IDataset)fc;
            ISelectionSet pSelectionSet = fc.Select(queryFilter, esriSelectionType.esriSelectionTypeHybrid, esriSelectionOption.esriSelectionOptionOnlyOne, dataset.Workspace);
the pSelectionSet.Count = 1 rather than multiple.  What's wrong with my code here?  Thanks.

Outcomes