[Cartoweb-users] Server to client side ? Trying to do a new export plugin

François-Xavier PRUNAYRE fx.prunayre at oieau.fr
Tue Apr 25 03:11:43 EDT 2006


Hi list, 
Transfer request problem from client to server and back is solved. 

Other problem, I have a plugin which create webmapcontext to the current map. 
1. Server:Initialize create the webmapcontext using mapfile
2. Server:Initialize save to disk
$this->serverContext->getConfig()->webWritablePath. '/'. $fileName;
3. Server:handlePreDrawing send url using the request to client
4. Client:renderForm assign url to the template
5. And user click on the link <a href="{$webMapContextUrl}">Download Web Map
Context</a>

2 questions :
- how to use the ExportPlugin instead of the ClientPlugin to open the
webMapContext directly (as csv, or exportpdf does). 
I suppose that I need to set my class to extends ExportPlugin and then ?
I don't really understand how to use it ? 

- $this->serverContext->getConfig()->webWritablePath return the path on the
server /home/www/cartoweb3/htdocs/generated/ 
but how to get only the URL '/cartoweb3/htdocs/generated/' 

Thanks for your help. 

Francois


---------- Original Message -----------
From: "François-Xavier PRUNAYRE" <fx.prunayre at oieau.fr>
To: cartoweb-users at lists.maptools.org
Sent: Mon, 24 Apr 2006 14:12:07 +0200
Subject: [Cartoweb-users] Server to client side ?

> Hi list,
> 
> I would like to get all layers having CONNECTIONTYPE = WMS 
> in map file and display on the client side.
> 
> I can do it in the cartoserver using :
> 	$map = $this->serverContext->getMapObj();
> 	$layer = $map->getLayer($layerIndex);
> 	if ($layer->connectionType = MS_WMS) {
> 
> but any idea how to get this in the cartoclient side ? ... and then display
> the list using templates. How to get the session element from server 
> to client ?
> 
> Thanks for your help. 
> Francois
> 
> -- 
> Ce message a ete verifie par MailScanner pour des virus ou des 
> polluriels et rien de suspect n'a ete trouve.
> 
> Les donnees et renseignements contenus dans ce message sont 
> personnels, confidentiels et prives. Toute publication, utilisation 
> ou diffusion, meme partielle, doit etre autorisee.
> 
> Any data and information contained in this electronic mail is 
> personal, confidential and secret. Any total or partial publication, 
> use or distribution must be authorized.
> 
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
------- End of Original Message -------


-- 
Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve.

Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee.

Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized.



More information about the Cartoweb-users mailing list