Opened 12 years ago

Last modified 12 years ago

#4076 new defect

queryByIndex error using postgis layer

Reported by: edmarmoretti Owned by: aboudreault
Priority: highest Milestone: 6.0.1 release
Component: MapScript-PHP Version: 6.0
Severity: critical Keywords:
Cc:

Description

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!

Change History (1)

comment:1 by edmarmoretti, 12 years ago

$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

Note: See TracTickets for help on using tickets.