queryByIndex error using postgis layer #4076

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

Comments

Projects
None yet
4 participants
@mapserver-bot

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

This comment has been minimized.

Show comment
Hide comment
@mapserver-bot

mapserver-bot 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

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

This comment has been minimized.

Show comment
Hide comment
@tbonfort

tbonfort Aug 8, 2012

Member

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

Member

tbonfort commented Aug 8, 2012

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

@sdlime

This comment has been minimized.

Show comment
Hide comment
@sdlime

sdlime Aug 9, 2012

Member

@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

Member

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

This comment has been minimized.

Show comment
Hide comment
@tbonfort

tbonfort Aug 10, 2012

Member

@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/)

Member

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

This comment has been minimized.

Show comment
Hide comment
@sdlime

sdlime Aug 10, 2012

Member

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

Member

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

This comment has been minimized.

Show comment
Hide comment
@sdlime

sdlime Aug 11, 2012

Member

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

Member

sdlime commented Aug 11, 2012

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

@sdlime

This comment has been minimized.

Show comment
Hide comment
@sdlime

sdlime Sep 4, 2012

Member

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

Member

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