Hello,<br><br>I would like to select data from one layer by applying a filter.I have tried the following code: <br> <br><div style="margin-left: 40px;"> $mgSessionId = ($_SERVER['REQUEST_METHOD'] == "POST")? $_POST['SESSION']: $_GET['SESSION'];<br>
<br> MgInitializeWebTier ($configFilePath);<br><br> $userInfo = new MgUserInformation($mgSessionId);<br> $siteConnection = new MgSiteConnection();<br> $siteConnection->Open($userInfo);<br><br><br> $resourceService = $siteConnection->CreateService(MgServiceType::ResourceService);<br>
$featureService = $siteConnection->CreateService(MgServiceType::FeatureService);<br><br> $map = new MgMap();<br> $map->Open($resourceService, 'Sheboygan');<br><br> $layer = GetLayerByName($map, 'Parcels');<br>
<br> $queryOptions = new MgFeatureQueryOptions();<br> $queryOptions->SetFilter("RTYPE = 'RES'");<br><br> $featureReader = $layer->SelectFeatures($queryOptions);<br></div> <br> <br>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. <br>
<br> Thanks<br>