-
-
Notifications
You must be signed in to change notification settings - Fork 381
PHP mapscript : Can't use queryByIndex result #4926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you, @fabien-cat. With postgis, the result index is always 0, which is the row number. See #4932 for further explanation. |
Thanks @mkofahl , so why there's a good number result but always the same index for Shapes result ? |
This is an automated commentThis issue has been closed due to lack of activity. This doesn't mean the issue is invalid, it simply got no attention within the last year. Please reopen with missing/relevant information if still valid. Typically, issues fall in this state for one of the following reasons:
|
Hello,
I can't use queryByIndex result on Postgis layers (Mapserver 6.4.1, PHP 5.5.12, Postgis 2.0).
$iIndexLayer=1;
$aQueryIndex=new array(2211, 2215);
foreach($aQueryIndex as $iIndex){
$oLayer=$oMap->getLayer($iIndexLayer);
$oLayer->queryByIndex(-1,$iIndex,MS_TRUE);
}
I've a second problem if I do :
$sMapFile="my_mapfile.map.qy";
$oMap->savequery($sMapFile);
$oMap->loadQuery($sMapFile);
If I do a savequery(), the getNumResults() is always increases 1.
I see that issue :
#4076
Indeed, the getNumresults() function works but the result can't be use.
In version 5.4 of Mapserver everything works fine.
I looked the code (mapquery.c), this is complex, maybe there is a problem with the result index ?!
Thanks,
Fabien Marty
The text was updated successfully, but these errors were encountered: