[Cartoweb-users] Configuraztion of map file
Oliver Christen
oliver.christen at camptocamp.com
Wed Jun 25 09:12:23 EDT 2008
Hi
It would be probably easier if you do it in 3 steps.
first, use a tableRule to add a new column to the query result, in this new column you put some ckeckbox or button allowing the user to select the object
then make a new plugin which will be triggered by the input in the query result and will then insert in ppc_esposti the data of the selected geometry
thirdly, you need to extend the edit plugin so you can define on-the-fly the DATA via mapOverlay or phpMapscript and directly select a tool and the related layer.
setting the DATA of the layer is relatively easy (plenty of example already posted in the mailinglist) but Im not sure the edit plugin can be modified to show immediatly a layer with a tool activated without some rewrite of the plugin logic.
regards
Oliver
----- Original Message -----
From: Giovanni Virdis
To: cartoweb-users at lists.maptools.org
Sent: Wednesday, June 25, 2008 1:18 PM
Subject: [Cartoweb-users] Configuraztion of map file
Hi list,
I have two table in my postgis db:
Edifici and ppc_esposti
In the table Edifici there are the some record
The table ppc_esposti is empty
I want configure my application (maybe .map file) to work in this mode:
Show the layer whit the record of table edifice
When the user select the geometry after confirmation the system insert a new record in ppc_esposti table with the reference of the selected row of edifici table (ppc_esposti contain an filed that refernce to id of edifice).
The system show the edit table with the value of ppc_esposti
The user insert a value and save
The system insert into ppc_esposti the data insert from user
Example:
Edifici
ID_EDI GEOMETRY
1 xxxxxx
2 yyyyyyy
3 zzzzzzz
Ppc_Esposti
ID ID_EDI TIPOLOGIA
1 1 SCUOLA
2 1 ALIMENTARI
3 2 CAMPO SPORTIVO
4 3 COMUNE
So the geometry is in the edifici table and in the ppc_esposti table there are the reference of edifice and others data..
Can someone help me?
Thanks
------------------------------------------------------------------------------
_______________________________________________
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/20080625/321d6d30/attachment.html
More information about the Cartoweb-users
mailing list