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;">&nbsp;$mgSessionId = ($_SERVER[&#39;REQUEST_METHOD&#39;] == &quot;POST&quot;)? $_POST[&#39;SESSION&#39;]: $_GET[&#39;SESSION&#39;];<br>
<br>&nbsp;MgInitializeWebTier ($configFilePath);<br><br>&nbsp;$userInfo = new MgUserInformation($mgSessionId);<br>&nbsp;$siteConnection = new MgSiteConnection();<br>&nbsp;$siteConnection-&gt;Open($userInfo);<br><br><br>&nbsp;$resourceService = $siteConnection-&gt;CreateService(MgServiceType::ResourceService);<br>
&nbsp;$featureService = $siteConnection-&gt;CreateService(MgServiceType::FeatureService);<br><br>&nbsp;$map = new MgMap();<br>&nbsp;$map-&gt;Open($resourceService, &#39;Sheboygan&#39;);<br><br>&nbsp;$layer = GetLayerByName($map, &#39;Parcels&#39;);<br>
<br>&nbsp;$queryOptions = new MgFeatureQueryOptions();<br>&nbsp;$queryOptions-&gt;SetFilter(&quot;RTYPE = &#39;RES&#39;&quot;);<br><br>&nbsp;$featureReader = $layer-&gt;SelectFeatures($queryOptions);<br></div> <br> <br>When I execute this code, the map post all Parcels but not the parcels with &quot;RTYPE = &#39;RES&#39;&quot;).I want to get the same result that I get when applying a filter in mapstudio. <br>
 <br> Thanks<br>