Hi Giuseppe

see
http://pomerape-dev.c2c/~ochriste/doc/user.query.html#user.query.mapfile.metadata
for info about query_returned_attributes

as for retrieving the point coordinate, I would say using a point with a buffer would be more efficient than storing a polygone, though im not a specialist in the matter. have a look at builtin functions in postgis, maybe there is one that would do exactly what you need.

regards
Oliver


Hi Oliver,
at least I've just finisched to write the rtf plugin, now I can manage a
stack of possible documents.
Now I can focus on the super layer feature. I've read the query plugin.
Anyway by seeing the .map of demo plugin I see the following quaryble layer:

LAYER
   NAME "lake"
   TYPE POLYGON
   DATA "inwatera"
   TRANSPARENCY 70
   METADATA
     "id_attribute_string" "OGC_FID|string"
     "query_returned_attributes" "AREA"
   END
   TEMPLATE "ttt"
   CLASS
     NAME "lake"
     STYLE
       COLOR 180 180 240
       OUTLINECOLOR 0 0 180
     END
   END
 END

there is no postgis connection . While I was writng the following one:

LAYER # query layer using the loccoords PostgreSQL table
NAME point_to_mark
CONNECTIONTYPE postgis
CONNECTION "user=postgres1 password=password dbname=my_country
host=localhost port=5432"

DATA "the_geom from super_layer_tab"
STATUS ON
TYPE POINT
BUFFER 5
CLASS
NAME "point_to_mark"
STYLE
SYMBOL "circle"
SIZE 5
COLOR 255 0 0
OUTLINECOLOR 0 0 0
END
END

In the former there is "Area" which should be the returned and displayed
string, nut in the latter there is no info about the column table which I
've to read to transfer the link.
Could you say me which is the right solution ?
As far as I know I have to add and customize the query.ini in server and
client conf.

Finally I 've to customize the tablerules.

In order to catch the point , do you advice me to choose a polygon area or a
point into a sensible circle area ?

Thanks in advance and best reagards

Giu



--------- Original Message --------
Da: Oliver Christen <[EMAIL PROTECTED]>
To:
Oggetto: Re: super layer
Data: 18/04/07 08:59

>




>
> and now ?  If I click by a point, I want a new browser window opened to
> the
> link www.link1.com (only one result). do I have to use the query plugin
?
> Please can you suggest me something more ? In some example I sow there
is
> a
> template.html, but I 'm a bit confused by using it in Cartoweb
environment
> .
>

you use the standart Query plugin, but you add some tableRules. tableRules

are functions that will format a query result before it is displayed in
the
page.
this would allow you to format the result so it doesnt get displayed as a
normal query result (in an html table) but in a hidden <div> element, for
example.

see

http://www.cartoweb.org/doc_head/docbook/xhtml/dev.newplugin.html#dev.newplugin.special.tables
and there is an exemple in the "cartoweb for beginner" workshop we have
there: http://www.cartoweb.org/cwiki/Foss4g06Workshops

Then, you make a javascript script that will be triggered "onLoad",
meaning
everytime the page finish to load. That script will check if the hidden
div
exit ( if (xGetElementById('myHiddenDiv')) for example) and if that div
contain a link ( if (xGetElementById('myLink')) if you give an id to the
<a
href=".." id="myLink">...</a> ) you then get the href value with
javascript
and then do a windows.open() with the link you just recovered.

regards
Oliver




--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Vuoi essere in grado di saper scrivere un Business Plan vincente? Impara
subito seguendo questo videocorso multimediale
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6198&d=20070427




_______________________________________________
Cartoweb-users mailing list
Cartoweb-users@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to