[Cartoweb-users] Re: super layer
oliver.christen at camptocamp.com
Fri Apr 27 07:49:44 EDT 2007
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.
> 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
> NAME "lake"
> TYPE POLYGON
> DATA "inwatera"
> TRANSPARENCY 70
> "id_attribute_string" "OGC_FID|string"
> "query_returned_attributes" "AREA"
> TEMPLATE "ttt"
> NAME "lake"
> COLOR 180 180 240
> OUTLINECOLOR 0 0 180
> 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
> NAME "point_to_mark"
> SYMBOL "circle"
> SIZE 5
> COLOR 255 0 0
> OUTLINECOLOR 0 0 0
> 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
> point into a sensible circle area ?
> Thanks in advance and best reagards
> --------- Original Message --------
> Da: Oliver Christen <oliver.christen at camptocamp.com>
> 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
>> > a
>> > template.html, but I 'm a bit confused by using it in Cartoweb
>> > .
>> you use the standart Query plugin, but you add some tableRules.
>> are functions that will format a query result before it is displayed in
>> 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
>> and there is an exemple in the "cartoweb for beginner" workshop we have
>> there: http://www.cartoweb.org/cwiki/Foss4g06Workshops
>> everytime the page finish to load. That script will check if the hidden
>> exit ( if (xGetElementById('myHiddenDiv')) for example) and if that div
>> contain a link ( if (xGetElementById('myLink')) if you give an id to the
>> href=".." id="myLink">...</a> ) you then get the href value with
>> and then do a windows.open() with the link you just recovered.
> Email.it, the professional e-mail, gratis per te: http://www.email.it/f
> 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
More information about the Cartoweb-users