<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:10pt"><span style="font-family: arial,helvetica,sans-serif;">Thanks Daniel, </span><br style="font-family: arial,helvetica,sans-serif;"><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">I was reading the mapscript documentation before the post of this message and I </span><span style="font-family: arial,helvetica,sans-serif;">found this:</span><br style="font-family: arial,helvetica,sans-serif;"><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">layer.getShape(int tileindex, int shapeindex)) has been deprecated and
renamed to layer.getFeature(int shapeindex [, int tileindex = -1]) to
match the SWIG MapScript equivalent. Note that the order of the 
arguments
is reversed since tileindex is optional in getFeature().</span><br style="font-family: arial,helvetica,sans-serif;"><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">But I didn't look the Mapserver RFC 52.</span><br><br><span style="font-family: arial,helvetica,sans-serif;">Thanks once again</span> !<br style="font-family: arial,helvetica,sans-serif;"><br><div style="font-weight: bold; color: rgb(0, 96, 191); font-family: arial,helvetica,sans-serif;">IC Carlos Ruiz</div><div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 10pt;"><br style="font-weight: bold;"><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>