[mapguide-users] Select feature problem

Kenneth, GEOGRAF A/S ks at geograf.dk
Sun Dec 30 11:31:33 EST 2007


What error do you get?

Regards, Kenneth, GEOGRAF A/S



mates skrev:
> I am trying to build a query.I have a temporary created layer. It's a one
> rectangle.
>
> Now i want select this one feuture by a SelectFeature function,but it
> doesn't work.
>
>
>
>      //Code to create $siteConnection, $resourceService and $featureService
>
>
>       $map = new MgMap();
>       $map->Open($resourceService, $mapName);
>
>       $layer = $map->GetLayers()->GetItem('Vyber');
>   
>       
>       $filterQuery = new MgFeatureQueryOptions();
>       $filterQuery->SetFilter("ID = 1");
>
>       $resId = new MgResourceIdentifier($layer->GetFeatureSourceId()); 	
> 	 
>      $featureReader = $featureService->SelectFeatures($resId, "Vyber",
> $filterQuery);
>
>     
>
>     Vyber is the name of the layer and ID is a AutoGeneration propierty.
>      
>   


More information about the mapguide-users mailing list