[Cartoweb-users] how to edit the X and Y coordonates from a point with the "edit" plugin

Oliver Christen oliver.christen at camptocamp.com
Tue Nov 20 02:43:29 EST 2007


Hi

the edit plugin was not intended to allow the modification of the coordinates manualy.
what we did in a project was to add two extra inputs and then override the sql update query by inserting the modified corrdinates.
the sql queries are in file ServerEdit.php, there is only one UPDATE query.

see http://www.cartoweb.org/doc/cw3.4/xhtml/dev.newplugin.html#dev.newplugin.adapting.extending to extend a existing plugin functionnalities

regards
Oliver
  ----- Original Message ----- 
  From: marie-line romanens 
  To: cartoweb-users at lists.maptools.org 
  Sent: Monday, November 19, 2007 4:34 PM
  Subject: [Cartoweb-users] how to edit the X and Y coordonates from a point with the "edit" plugin


  Hello,

  I try to modify the "edit" plugin for CW3 and I'm completely blocked.

  I want to give my users the ability to edit the X and Y coordonates from a point. 

  I found how to retrive the values into the differents input fields when I choose the "EDIT tool"(the arrow one) but it seems it's coming right from the mapfile ('edit_attributes' 'id,date_ouverture|string,requerant|string,the_geom|string,... in the METADATA zone in my layer definiton) and my problem is that I'm not able to use postGis functions (such as X(geometry) y(geometry or astext(geometry)) in that call.

  By the way, is there a place where I can modify the postGIS request ?

  Marie


------------------------------------------------------------------------------
  Découvrez la nouvelle génération des servives de Windows Live Cliquez ici! 


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


  _______________________________________________
  Cartoweb-users mailing list
  Cartoweb-users at lists.maptools.org
  http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20071120/c8afc4d9/attachment.html


More information about the Cartoweb-users mailing list