[mapguide-users] Search multiple features

GordonL gordon.luckett at arrowgeomatics.com
Tue Dec 29 10:14:21 EST 2009


Why not use "IN"?

$opts->SetFilter("(NO_LOT in ('0124','0023'))");



ehsan wrote:
> 
> Hi, i would like to ask..i want to make searching for multiple features
> and select it on the map...
> to be clear this is what i want to do..
> before this i search on the map by using this code 
> 
>                 $opts = new MgFeatureQueryOptions();
>         	$opts->SetFilter("(NO_LOT='0124')");//set the query filter
>         	$featureClassName = $layer->GetFeatureClassName();
>         	$srcId = new MgResourceIdentifier($layer->GetFeatureSourceId());
>         	$features = $featureSrvc->SelectFeatures($srcId,
> $featureClassName, $opts);
> 		$hasResult = $features->ReadNext();
> 
> in this code i just search for one value for NO_LOT, what i would like to
> do is, i want to search NO_LOT by using multiple value for example to
> search for NO_LOT "0234" & "0023".
> is there a way that i could do to make it...? 
> 
> Thanks...
> 

-- 
View this message in context: http://n2.nabble.com/Search-multiple-features-tp4226584p4227979.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list