Hi Dane,
thanks for the answer but what do you mean with "configuring the WMS factory properly"? Are you talking about the class you always define on top of a .py file if you want to make a .py file accessible via WMS? So what do I have to change (I guess in the xml_factory.py) to view a map in browser? *a little bit confused* best regards + thanks for answers -------- Original-Nachricht -------- > Datum: Sun, 8 Mar 2009 11:38:30 -0700 > Von: Dane Springmeyer <[email protected]> > An: "tschobber tschöbbi" <[email protected]> > CC: [email protected] > Betreff: Re: [Mapnik-users] Questions on xml_factory.py > 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 -- 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

