Andre I guess I found now why it was always working with XY layers that I defined but never with the ones that you use. You always specified a TEMPLATE tag for the XY layers. Since the query on them is *not* performed via standard MapScript but via pure PHP/PEAR function this tag is not needed. And even worse, it seems that it confuses somehow the logic of layers to be queried with Mapscript, and the request getNumResult() returns 0 for all layers queried before the XY layer.
So just try to remove the TEMPLATE tag for the XY layers and it should work then - hopefully ;-). Armin Andre van Atten wrote: > > In this line testing of XY layers using PEAR is not fixed. When there is > 1 ore more XY layers in teh layerlist, on most normal layers where > numresults should be > 0 (I click on features of that layers), the > response however is getNumResults = 0. This line is responsible for > removing normal layers from the identify results when there is an XY > layer (using PEAR) included in the layerlist. This means XY layers still > can't be used in combination with other layers. This is very > disappointing to me, but I understand it takes a lot of time to > restructure the code on this point. I hoped this should be corrected in > this version. > > However, when testing on 1 XY layer only (using PEAR) results are fine: > when using DB ODBC layers can be added (but not queried). When suing > MDB2:mssql provider SQL server database layers can be added correctly > too. (I mentioned earlier before that the use of named pipes in this > MDB2 library does not allow to make trusted connections on windows to MS > SQL databases, that means SSPI context can not be determined when server > or laptop is standalone). This a PEAR issue, not pMapper, but this is > why I prefer to use DB library. > ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ pmapper-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pmapper-users
