Oliver,
I added:

if (isset($request['selection_coords']) {
    $this->coordinates = $request['selection_coords'];
}

in handleHttpPostRequest  in coreplugins/query/client/ClientQuery.php file (is 
the right file?)

How can I call coordinates string from tables.tpl file if I want to display 
them with other query results?

Thank you

Valerio


/*
Valerio Noti
[EMAIL PROTECTED]
*/
  ----- Original Message ----- 
  From: Oliver Christen 
  To: Valerio Noti ; [email protected] 
  Sent: Thursday, February 08, 2007 7:42 AM
  Subject: Re: [Cartoweb-users] retrieve map coordinates with query tool


  Hi Valerio,

  yes, each query return the coordinate of the point or selection on the map.
  you can retrieve the data from the handleHttpPostRequest ( or 
filterPostRequest, depending what you want to do with the values)
  the variable name is "selection_coords"

  for exemple, in handleHttpPostRequest :

  if (isset($request['selection_coords']) {
      $this->coordinates = $request['selection_coords'];
  }

  or in filterPostRequest :

  if ($request->getValue('selection_coords') && 
!empty($request->getValue('selection_coords'))) {
      this->coordinates = $request->getValue('selection_coords');
  }

  the coordinates are a string like this 'x,y' for point or 
'xmin,ymin;xmax,ymax;...' for box

  regards
  Oliver
    ----- Original Message ----- 
    From: Valerio Noti 
    To: [email protected] 
    Sent: Wednesday, February 07, 2007 3:23 PM
    Subject: [Cartoweb-users] retrieve map coordinates with query tool


    hello,
    is it possible to retrieve map coordinates where user clicked with query 
tool?

    Thanks in advance

    Valerio


    /*
    Valerio Noti
    [EMAIL PROTECTED]
    */


----------------------------------------------------------------------------


    _______________________________________________
    Cartoweb-users mailing list
    [email protected]
    http://lists.maptools.org/mailman/listinfo/cartoweb-users



------------------------------------------------------------------------------


  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.5.432 / Virus Database: 268.17.29/673 - Release Date: 06/02/07 
17.52
_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to