[mapserver-users] PHP mapscript and getResult()
Worth Lutz
wal3 at mindspring.com
Thu Mar 11 17:01:47 PST 2010
I've been using the PHP mapscript method
$results = layer->getResults();
to get:
$results->numresults -and- $results->bounds
of a query result.
This is described in the query example in the manual at:
http://www.mapserver.org/mapscript/querying.html?highlight=query
and in the SWIG mapscript documentation. It was added to a 5.4 branch which
I have been using in my development.
I just got Mapserver 5.6 running on my test machine and the layer does not
have this method.
Is the information not available any more? Did this get deleted due to the
1-pass query? Do I need to reinsert the code I previously had to loop
through the results to calculate the bounds of the results to set a map
extent or is it possible to add this back in?
Thanks in advance for clarifying this,
Worth
-----Original Message-----
From: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca]
Sent: Tuesday, June 09, 2009 7:31 AM
To: Worth Lutz
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] PHP mapscript and getResult()
Worth Lutz wrote:
> Did this get added into PHP mapscript in the 5.4.1 release? If so, is it
a
> layer object method?
>
It missed the release. It is now committed in the the 5.4.x branch and
the ticket is updated to reflect that.
best regards,
> -----Original Message-----
> From: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca]
> Sent: Monday, April 06, 2009 1:54 PM
> To: Worth Lutz
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] PHP mapscript and getResult()
>
>
> Worth Lutz wrote:
>> There is a SWIG mapscript reference to a "layerObj" method "getResults()"
>> returning a resultCacheObj. The resultCacheObj has an attribute "bounds"
>> which is the extent of the results.
>>
>> Is this available in PHP mapscript. It seems to be missing.
>>
>
> It is missing in php mapscript. Added a ticket on it and It should be
> available for the 5.4.1 release:
> http://trac.osgeo.org/mapserver/ticket/2967
>
> Best Regards
>
>
>> Worth
>>
>>
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
More information about the MapServer-users
mailing list