Skip to content
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

queryByIndex error using postgis layer #4076

Closed
mapserver-bot opened this issue Apr 4, 2012 · 7 comments
Closed

queryByIndex error using postgis layer #4076

mapserver-bot opened this issue Apr 4, 2012 · 7 comments
Assignees
Milestone

Comments

@mapserver-bot
Copy link

@mapserver-bot mapserver-bot commented Apr 4, 2012

Reporter: edmarmoretti
Date: 2011/11/10 - 15:08
Trac URL: http://trac.osgeo.org/mapserver/ticket/4076
The "querybyindex" has a problem when using a "layer" on the basis of postgis.
Using the same data, but based on shapefile, "querybyindex" operates normally.
example:

$shp_list = array(1,2,3,4,5,6,7,8,9);//this is ok - example only
$indxlayer = $layer->index;
foreach ($shp_list as $indx)
{$map->querybyindex($indxlayer,-1,$indx,MS_TRUE);}
echo $layer->getNumResults();
//return 0

In version 5.6 of Mapserver everything works fine, but in version 6.0.1, not.

Please help me!

@mapserver-bot
Copy link
Author

@mapserver-bot mapserver-bot commented Apr 4, 2012

Author: edmarmoretti
Date: 2011/11/10 - 15:09
$shp_list = array(1,2,3,4,5,6,7,8,9);//this is ok - example only

$indxlayer = $layer->index;

foreach ($shp_list as $indx)

{$map->querybyindex($indxlayer,-1,$indx,MS_TRUE);}

echo $layer->getNumResults();

//return 0

@tbonfort
Copy link
Member

@tbonfort tbonfort commented Aug 8, 2012

@sdlime would this be related to RFC65 changes (sorry for the double post)?

@sdlime
Copy link
Member

@sdlime sdlime commented Aug 9, 2012

@tbonfort, I believe so, at least based on what we found with #4416. Can someone re-test with 6.2? (Having trouble getting Perl/MapScript working...) --Steve

@tbonfort
Copy link
Member

@tbonfort tbonfort commented Aug 10, 2012

@sdlime should the provided example work in 6.2 ?
What issues with perl (not a mapscript user myself, I am however able to build, install and run a sample pl script from examples/)

@sdlime
Copy link
Member

@sdlime sdlime commented Aug 10, 2012

I don't have access to my home machine but it seems like a problem with gcc 4.2 on older versions of OSX and not MapServer itself. I'll try on my work box. The example script should work with 6.2.

Steve

@sdlime
Copy link
Member

@sdlime sdlime commented Aug 11, 2012

I can test with CGI. This isn't a MapScript issue per se...

@sdlime
Copy link
Member

@sdlime sdlime commented Sep 4, 2012

I can confirm this is fixed in 6.2+ and added a test in msautotest/query/query.map and query_postgis.map. Closing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.