Alle 19:10, venerd? 14 ottobre 2005, hai scritto:
Hi Armin,

i try to do what you said me and i obtain OID that is correct!
I try to use 1.9.4 pmapper version but the bug persist

For me the problem is another:
when i use multi-search-info (it works) in the apache-log i see that 
$resShpIdx is not OID postgis record but it's the gid, instead in search 
procedure $resShpIdx is OID, so the pmap_addResultLayer() function in map.php 
is blocked at $newResLayer->addFeature($resShape),  this is correct?

Bie Walter


> Did you try the new version 1.9.4? There were some bugs for attribute
> searches on Postgis layers until then. I was hoping that they had been
> solved with the new version. I can remember that I got that problem, but
> do not know any more what was the reason for it.
>
> The problem comes from that it cannot find the shape based on the
> supplied feature ID. It uses this feature ID to identify the feature
> used for the highlighting. And it does not find the feature in the
> postgis layer with that id.
>
> Write out the feature to the PHP error log, using something like
> error_log("OID: $resShpIdx");
>
> after the line
>
> $resShape = $qLayer->getShape($resTileShpIdx, $resShpIdx);
>
> in map.php
>
> Then look in the postgis DB if you can find the feature using
> select * from your_table where oid = [the_id_from_$resShpIdx]
>
>
> Armin

-- 
Walter Lorenzetti
[EMAIL PROTECTED]   www.faunalia.it   www.faunalia.com
Via di Tofori 123 - 55010 Camigliano (LU), Italy   Tel: (+39)347-6597931

Reply via email to