Hello, I would like to select data from one layer by applying a filter.I have tried the following code:
$mgSessionId = ($_SERVER['REQUEST_METHOD'] == "POST")? $_POST['SESSION']: $_GET['SESSION']; MgInitializeWebTier ($configFilePath); $userInfo = new MgUserInformation($mgSessionId); $siteConnection = new MgSiteConnection(); $siteConnection->Open($userInfo); $resourceService = $siteConnection->CreateService(MgServiceType::ResourceService); $featureService = $siteConnection->CreateService(MgServiceType::FeatureService); $map = new MgMap(); $map->Open($resourceService, 'Sheboygan'); $layer = GetLayerByName($map, 'Parcels'); $queryOptions = new MgFeatureQueryOptions(); $queryOptions->SetFilter("RTYPE = 'RES'"); $featureReader = $layer->SelectFeatures($queryOptions); When I execute this code, the map post all Parcels but not the parcels with "RTYPE = 'RES'").I want to get the same result that I get when applying a filter in mapstudio. Thanks
_______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users