Ah, that was much more helpful and I have an answer ...

There was just another thread about query in mapscript that Steve Lime responded to. In 5.6 (read the migration guide) there have been big changes to the the query code and things work differently now. I don't have all the details on the top of my head, but look in the archives for today.

-Steve W

Sandeep Kumar Chauhan wrote:
Hi Steve,

Thanks for reply.  What I was trying to say was ...
I was using mapscript (csharp) 5.4.1 earlier for my customize application.
For performing Identify operation I was using following code...

...
...
if (layer.queryByPoint(Map, point, (int)mapscript.MS_SINGLE, tolerance) ==
...
{
    resultCacheObj result = layer.getResults();
                    if (result.numresults > 0)
                    {

                        int shapeInd = result.getResult(0).shapeindex;
                        ...
                        ...
                        ...
It was working perfectly fine. Few days back I compiled 5.6.0 on my system.
It was not working in expected way in case of postGIS dataset. Value
returned every time for ShapeIndex was either 0 or 1, even though I had more
than 1000 features in my dataset. I tried to use 5.6.1 as well but was not
able to get correct results.

I swap mappostgis.c of 5.6.1 with that of 5.4.1, and recompiled everything.
I got expected results.

Please advice if my compilation is wrong or it is a bug in 5.6.x? I am using
postgresql-8.3.7 for compilation.


Thanks,
   -Sandeep
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users




_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to