I figured it out. I was assuming that the setSubsetString would do the querying and update the selection set, but I gather now after a few hours of hardwork that is not its purpose, it just limits the accessible features with out changing the selection set.
How can I help update the documentation to reflect what the methods are meant to do? Thank you, Maaza --- On Wed, 6/8/11, maaza mekuria <sail...@yahoo.com> wrote: > From: maaza mekuria <sail...@yahoo.com> > Subject: [Qgis-developer] Query Set using SetSubstring does not return record > To: "QGIS Developer" <qgis-developer@lists.osgeo.org> > Date: Wednesday, June 8, 2011, 2:25 PM > > > > I have a subsetstring query applied in code to the layer > data. Yet I find that it does not return any records that it > should have > located. > > > The code is pasted below, the setSubsetString passes and > yet the selected feature count is 0. What am I missing > here? > > //Query the edge table edge field > to find the two vertices > strQryEdge = "EDGEID=" + > fld0.toString() + ""; > if > (inEdgeVectorProvider->supportsSubsetString()) > { > > blnQryCur=inEdgeVectorLayer->setSubsetString(strQryEdge); > if (blnQryCur) > { > > lstEdgeFeats = > inEdgeVectorLayer->selectedFeatures(); > txtStream << " > Recount - "<<lstEdgeFeats.count()<<endl; > } // if network source query > returns edge result > } // if edge provider supports > query subst > > > Thank you, > > Maaza > > _______________________________________________ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-developer > _______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer