[Mapbuilder-users] Group Layer

Bart van den Eijnden (OSGIS) bartvde at OSGIS.NL
Mon Mar 12 05:49:49 EDT 2007


Mapscript has functions to convert from/to a Web Map Context document.

So you need to script this, you can't use a WMC directly in Mapserver CGI
AFAIK.

Look for saveMapContext and loadMapContext functions on the Map object.

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Vincent Schut <schut at sarvision.nl>
Naar: olivier.terral <olivier.terral at geomatys.fr>
Cc: mapbuilder-users <mapbuilder-users at lists.sourceforge.net>,
'mapbuilder-devel at lists.sourceforge.net'
<mapbuilder-devel at lists.sourceforge.net>, MAPSERVER-USERs at LISTS.UMN.EDU
Onderwerp: Re: [Mapbuilder-users] Group Layer
Datum: 12/03/07 07:34

> Hi Olivier,
> 
> (CCing the mapbuilder and mapserver lists because they might be 
> interested in this)
> 
> olivier.terral wrote:
> &gt; yep vincent,
> &gt;
> &gt; I love your demo .
> Thanks :)
> &gt;
> &gt; I've question about mapserver, I begin to use it and I see You use
too 
> &gt; so I ask you :
> &gt;
> &gt; visibly we can use a context doc , do you know how?
> &gt; I've saw a docs on it but this doc explains how to generate a WMC  
> &gt; with a map file and not how to use a context directly in place of the
 
> &gt; mapfile, Do you know if it possible?  or do you know if it possible
to 
> &gt; generate a mapfile with a WMC?
> I'm sorry, but I have never tried to do this. Actually, I don't think 
> it's possible because a Context file lacks some important information 
> for mapserver, like where a layer's data is physically stored on disk, 
> postgis, etc. The map file does not only configure layers like a Context 
> doc, but it is also the main configuration source for the mapserver 
> rendering engine.
> That being said, there might actually be some WMC support in mapserver, 
> and therefore I have CC'ed this message to the mapserver list too. Maybe 
> one of the Mapserver users/developers can comment on this and enlighten 
> Olivier and the rest of us?
> 
> &gt;
> &gt; Do you have commit your change for the GroupLayer options  in 
> &gt; mapbuilder trunk? because it is very useful
> I have not yet committed my custom legend to trunk. I might do so when 
> it is more or less finished, though I think it should be more feasible 
> to put it somewhere on the mapbuilder site as a legend xsl example, then 
> to trunk as another legend renderer again. I think legend xsl/js files 
> are typically widgets that can be changed and adapted by any user, and 
> many users will have different opinions and needs about how a legend 
> should look and behave. However, as an example of an advanced legend 
> (ahum, if I may say so...) it might be good to post it somewhere.
> However, if other MapBuilder developers disagree with me and think the 
> addition of my legend js/xsl code to trunk would be a good idea, I will 
> commit it.
> If you would like to see my code, I can send you the files of course.
> 
> Regards,
> Vincent.
> &gt;
> &gt; Thanks for all
> &gt; bye
> &gt;
> &gt; Vincent Schut a écrit :
> &gt;&gt; Hi Gertjan (Olivier, I cc you so you know I have answered Gj),
> &gt;&gt;
> &gt;&gt; I think it was me. It is a still ongoing project, but I regularly

> &gt;&gt; release a demo to our client so they can review the progress. I
think 
> &gt;&gt; it is no problem to give you the url, so you can view it too, as
long 
> &gt;&gt; as you focus on the technology, not on the data which might not
be 
> &gt;&gt; free (though viewing will be no problem, that's why I develop
this 
> &gt;&gt; thing in the first place).
> &gt;&gt;
> &gt;&gt; You can see the latest demo at 
> &gt;&gt; http:www.sarvision.nl/vision2/ies/greatlakes/demo11/index.html
> &gt;&gt;
> &gt;&gt; For the thematic layer grouping I use the extension tag in the 
> &gt;&gt; context document, which defines the groups and which layers
belong 
> &gt;&gt; where. It is parsed and rendered by a custom legend xslt file.
> &gt;&gt; If you have more questions regarding my implementation of MB,
don't 
> &gt;&gt; hesitate to ask.
> &gt;&gt;
> &gt;&gt; Cheers,
> &gt;&gt; Vincent.
> &gt;&gt;
> &gt;&gt; olivier.terral wrote:
> &gt;&gt;&gt; Hi guys,
> &gt;&gt;&gt;
> &gt;&gt;&gt; I remender that one of yours  have made a demo with  Group
Layer in 
> &gt;&gt;&gt; the legend  .
> &gt;&gt;&gt;
> &gt;&gt;&gt; Could you give me the url of this demo please , if it is
always in 
> &gt;&gt;&gt; place?
> &gt;&gt;&gt;
> &gt;&gt;&gt; Thanks in advance
> &gt;&gt;&gt;
> &gt;&gt;
> &gt;&gt;
> &gt;
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT &amp; business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV
> _______________________________________________
> Mapbuilder-users mailing list
> Mapbuilder-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
> 
> 



More information about the mapserver-users mailing list