<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt">Maybe the PHP Mapscript documentation must specify in the getFeature method description of the <br><span>LayerObj Class section (<a target="_blank" href="http://www.mapserver.org/mapscript/php/index.html#layerobj-class">http://www.mapserver.org/mapscript/php/index.html#layerobj-class</a>) that it's </span><br>deprecated since version 5.6.1, as the getShape method description:<br><br><span style="font-style: italic;">Deprecated in v5.0, use getFeature() instead (note that the order
of the arguments is reversed since </span><br style="font-style: italic;"><span style="font-style: italic;">tileindex is optional in
getFeature())</span><br style="font-style: italic;"><br><br><br><div style="font-weight: bold; color: rgb(0, 96, 191);">IC Carlos Ruiz</div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br style="font-weight: bold; color: rgb(0, 96, 191);"><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Daniel Morissette &lt;dmorissette@mapgears.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> mapserver-users &lt;mapserver-users@lists.osgeo.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Wed, March 10, 2010 4:54:09 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [mapserver-users] Something odd with queries in 5.6.1<br></font><br>
Carlos Ruiz wrote:<br>&gt; Hi all,<br>&gt; <br>&gt; I noticed something odd when I do a query with the new 5.6.1 version.<br>&gt; <br>&gt; The getFeature method seems to return a NULL value, when it was working good before the new version update.<br>&gt; <br><br>Due to a change in the handling of queries in version 5.6, ols scripts must be updated to use the new $layer-&gt;resultsGetShape() method instead of $layer-&gt;GetShape() or $layer-&gt;GetFeature() to read query results.<br><br>There is a mention of this change in the migration guide, but it may not be clear enough (contributions welcome):<br><span><a target="_blank" href="http://trac.osgeo.org/mapserver/browser/branches/branch-5-6/mapserver/MIGRATION_GUIDE.TXT">http://trac.osgeo.org/mapserver/browser/branches/branch-5-6/mapserver/MIGRATION_GUIDE.TXT</a></span><br><br>Daniel<br>-- Daniel Morissette<br><span><a target="_blank"
 href="http://www.mapgears.com/">http://www.mapgears.com/</a></span><br>_______________________________________________<br>mapserver-users mailing list<br><a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><span><a target="_blank" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></span><br></div></div>
</div><br>



      </body></html>