[Cartoweb-users] filterPlugin
Oliver Christen
oliver.christen at camptocamp.com
Wed Jun 18 03:44:25 EDT 2008
Hi
you have here a nice example of how to pass variables from client to server:
http://www.cartoweb.org/cwiki/HowToDisplayOnTheMapAPointFromADatabaseQuery
and also a nice graphic that explain the data flow in a plugin:
http://www.cartoweb.org/doc/misc/plugins_diagram.pdf
and the documentation that goes with it:
http://www.cartoweb.org/doc_head/docbook/xhtml/dev.newplugin.html
and some hundred message about how to do something like that in the mailinglist archive
regards
Oliver
----- Original Message -----
From: Anis Harmel
To: cartoweb-users at lists.maptools.org
Sent: Tuesday, June 17, 2008 9:31 AM
Subject: [Cartoweb-users] filterPlugin
Hi all,
I get the plugin filterPlugin written by Dirk Jesko (there is a year). I'm trying to change the code so that it would be possible to filter according to several parameters ($filterString) by layer.
I must have in my serverFilter
$ layer-> data = "the_geom FROM (SELECT * FROM table WHERE column1 = {$filterString1} AND column2 = {$filterString2} ....)". "Foo USING UNIQUE AS gid USING SRID =- 1";
instead:
$ layer-> data = "the_geom FROM (SELECT * FROM table WHERE column1 = {$filterString1})". "Foo USING UNIQUE gid USING SRID =- 1";
help please...
En français :
Salut tout le monde,
J'ai récupéré le plugin filterPlugin ici écrit par Dirk Jesko (il ya un an). J'essaye depuis un moment de modifier le code de sorte qu'il serait possible de filtrer les données selon plusieurs paramètres ($filterString).
Je dois avoir dans mon serverFilter
$ layer-> data = "the_geom FROM (SELECT * FROM table WHERE column1 = {$filterString1} AND column2 = {$filterString2} ....)". "Foo USING UNIQUE AS gid USING SRID =- 1";
au lieu de :
$ layer-> data = "the_geom FROM (SELECT * FROM table WHERE column1 = {$filterString1})". "Foo USING UNIQUE gid USING SRID =- 1";
Merci de votre aide...
------------------------------------------------------------------------------
_______________________________________________
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/20080618/00916dff/attachment.html
More information about the Cartoweb-users
mailing list