Martin,

Only jpeg and png rendering using AGG are supported with the OGCServer.

Support could be added to render to various image formats using Cairo,  
but this is not currently planned.

Also, the ability to load an XML map with the OGCServer is supported  
in trunk (which I know you are running) and will be available in the  
upcoming 0.6.0 release so you don't need to do anything further to get  
it to work, other than properly configure your WMS Factory to load an  
XML file.

Dane


On Mar 7, 2009, at 1:34 AM, tschobber tschöbbi wrote:

> Hi,
>
> I'm new to Mapnik and I want to render the population example 
> (http://trac.mapnik.org/wiki/XMLGettingStarted 
> ) once with the Cairo renderer and once with AGG -> that's already  
> working, but the main problem is that I want to show the rendered  
> files in the webbrowser by just makeing an wms server request, but  
> when I try this the file is just saved on the disk and nothing is  
> shown in the web browser. I thought maybe the xml_factory.py is the  
> solution, but when I try to run it with the population.xml file I  
> get nothing. I've checked this patch but I have the latest developer  
> source so I didn't change anything (if I have to change anything -  
> how? just editing the WMS.py and common.py in a directory like  
> this: /usr/lib/python2.6/site-packages/mapnik/ogcserver/WMS.py ?) .
>
> Do you have any idea how am I able to show the pictures in the  
> webbrowser with a single wms request (especially that shows the  
> Cairo rendered file in webbrowser).
>
>
> Heres the code of the xml_factory.py:
>
> from mapnik.ogcserver.WMS import BaseWMSFactory
>
> # note, this class for loading an xml map requires patch from 
> http://trac.mapnik.org/ticket/129
>
> class WMSFactory(BaseWMSFactory):
> def __init__(self):
>  BaseWMSFactory.__init__(self)
>  self.loadXML('/Users/spring/mapnik/osm.xml')
>  self.finalize()
>
>
>
> best regards,
>
> Martin
> -- 
> Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit  
> allen: http://www.gmx.net/de/go/multimessenger01
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to