I don't know if it helps since your error looks a bit strange, but: the 
function 'queryByAttribute' and the filters for PostGIS layers have been 
messed up in Mapscript/MS 4.10. The required syntax is different from 
4.8, and it additionally contains a bug...

In order to work correctly you need to modify the part in 
/incphp/init/initmap.php/getMapInitURL()
around line 488: modify to

  if ($qLayer->connectiontype == 6 || $qLayer->connectiontype == 8) {
      if ($_SESSION['msVersion'] > 48) {
          $q = $queryFieldType == 1 ? "'" : "";
          $queryValue = "\"$queryField = $q$queryValue$q\"";
      }
  }

assuming msVersion in config.ini is "410". Otherwise just write (only 
valid for MS 4.10):

  if ($qLayer->connectiontype == 6 || $qLayer->connectiontype == 8) {
      $q = $queryFieldType == 1 ? "'" : "";
      $queryValue = "\"$queryField = $q$queryValue$q\"";
  }

This will have to be changed again once the bug will be removed...

armin

Cristian Rougier wrote:
> Dears
>             I need to know why when i try to apply "zoomLayer" to a
> postgis layer the map are not displayed, but 
> when i try this to an esri layer work ok.
>  
> The line is
> map.phtml?winsize=small
> <mailto:map.phtml?winsize=small&language=en&config=flat&zoomLayer=unidad
> &[EMAIL PROTECTED]@[EMAIL PROTECTED]@0>
> &language=en&config=flat&zoomLayer=unidad&[EMAIL PROTECTED]@[EMAIL 
> PROTECTED]@0
>  
> "unidad" is the postgis layer
> "alcantar" is the field
> "S" is the value
> 
> I have thefollowing error in my apache error_log.
> [Thu Feb 01 07:48:58 2007] [error] [client 127.0.0.1]
> msPOSTGISLayerRetrievePK: field length = $imsPOSTGISLayerRetrievePK:
> field length = $imsPOSTGISLayerRetrievePK: field length =
> $imsPOSTGISLayerRetrievePK: field length = $imsPOSTGISLayerRetrievePK:
> field length = $imsPOSTGISLayerRetrievePK: field length =
> $imsPOSTGISLayerRetrievePK: field length = $imsPOSTGISLayerRetrievePK:
> field length = $imsPOSTGISLayerRetrievePK: field length =
> $imsPOSTGISLayerRetrievePK: field length = $imsPOSTGISLayerRetrievePK:
> field length = $imsPOSTGISLayerRetrievePK: field length =
> $imsPOSTGISLayerRetrievePK: field length = $imsPOSTGISLayerRetrievePK:
> field length = $imsPOSTGISLayerRetrievePK: field length = $i
> 
> If you please help me
> 
> Regards
> Cristian
>  
> La Info 
> Tecnología y Programación en Internet. 
>  <http://www.lainfo.com.mx/> http://www.lainfo.com.mx 
> http://www.sistemas-geograficos.com
> <http://www.sistemas-geograficos.com/>  
>  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] 
> Emails muy pesados a:  <mailto:[EMAIL PROTECTED]>
> [EMAIL PROTECTED] 
> Tel:(++5255) 8589-1554 
> Movil: 04455-1967-1907
> 
>  
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> pmapper-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
> 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to