[Qgis-developer] Query Set using SetSubstring does not return record

maaza mekuria sailmcm at yahoo.com
Wed Jun 8 14:25:45 EDT 2011


		
			
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



More information about the Qgis-developer mailing list