Documentation - Re: [mapserver-users] Something odd with queries in
boolean10001 at yahoo.com
Thu Mar 11 10:39:03 EST 2010
Maybe the PHP Mapscript documentation must specify in the getFeature method description of the
LayerObj Class section (http://www.mapserver.org/mapscript/php/index.html#layerobj-class) that it's
deprecated since version 5.6.1, as the getShape method description:
Deprecated in v5.0, use getFeature() instead (note that the order
of the arguments is reversed since
tileindex is optional in
IC Carlos Ruiz
From: Daniel Morissette <dmorissette at mapgears.com>
To: mapserver-users <mapserver-users at lists.osgeo.org>
Sent: Wed, March 10, 2010 4:54:09 PM
Subject: Re: [mapserver-users] Something odd with queries in 5.6.1
Carlos Ruiz wrote:
> Hi all,
> I noticed something odd when I do a query with the new 5.6.1 version.
> The getFeature method seems to return a NULL value, when it was working good before the new version update.
Due to a change in the handling of queries in version 5.6, ols scripts must be updated to use the new $layer->resultsGetShape() method instead of $layer->GetShape() or $layer->GetFeature() to read query results.
There is a mention of this change in the migration guide, but it may not be clear enough (contributions welcome):
-- Daniel Morissette
mapserver-users mailing list
mapserver-users at lists.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mapserver-users