I am using Ubuntu Hardy server.   I am working with the latest from the
mapnik trunk (up¹d today morning).

I will setup and try with wsgi and let you know what is happening with that.

Thanks. 


On 7/24/09 4:19 PM, "Dane Springmeyer" <[email protected]> wrote:

> Can you tell me your mapnik version and what operating system you are
> deploying with apache/mod_python?
> 
> Can you also try with the WSGI interface?
> 
> Dane
> 
> On Jul 24, 2009, at 3:57 PM, Premkumar Mani wrote:
> 
>>  Thanks Dane,
>>  That kind of works.  But it is not the same as rendered by the tilecache:
>>  
>>  This is the tile I get for the bbox through wms using layer=__all__  :
>> http://tinyurl.com/klddek
>>  
>>  And this is the same tile through tilecache using layer=osm :
>> http://tinyurl.com/n74ybn
>>  
>>  Can you tell me why the same osm.xml file is rendered in different style by
>> tilecache+mapnik and mapnik?
>>  
>>  Thanks
>>  
>>  On 7/24/09 3:45 PM, "Dane Springmeyer" <[email protected]> wrote:
>>  
>>  
>>> A "Layer" in WMS equates to the actual layer in the Mapnik XML,
>>>  because WMS is designed to allow flexible requests that can combine
>>>  various lists of layers and styles to be rendered.
>>>  
>>>  So normally you would pass an array of layers like:
>>>  
>>>  layers: ['roads','places','etc...] along with a array of styles, in
>>>  order, to direct Mapnik to render.
>>>  
>>>  But for OSM you are probably looking for a tile of everything, and for
>>>  this we've added a shortcut inside the OGCServer with is to pass
>>>  '__all__'.
>>>  
>>>  So try:
>>>  
>>>  wms = new OpenLayers.Layer.WMS("Mapnik WMS","http://localhost/wms/
>>>  wms?", {layers: '__all__', format:'image/png'} );
>>>  
>>>  
>>>  Keep in mind that rendering OSM data on-demand is intensive due to the
>>>  complexity of the data and styles. Putting Openlayers in 'singleTile'
>>>  mode and specifying a 'buffer' of 0 in the 'OpenLayers.Layer.WMS'
>>>  options hash can help speed up response time.
>>>  
>>>  Dane
>>>  
>>>  
>>>  On Jul 24, 2009, at 2:21 PM, Premkumar Mani wrote:
>>>  
>>>>  > Hi,
>>>>  > I am trying to setup mapnik ogcserver with OSM planet data at the
>>>>  > backend.
>>>>  > I have configured the ogcserver as mod_python.  When I try to browse
>>>>  > through the site using the sample openlayer index.html, it throws an
>>>>  > error Layer Œosm¹ is not defined.
>>>>  > But I have the same configuration working through tilecache.
>>>>  > What am I doing wrong?
>>>>  >
>>>>  > There server reference in the index.html is like this...
>>>>  >             wms = new OpenLayers.Layer.WMS("Mapnik
>>>> WMS","http://localhost/wms/wms?
>>>>  > ", {layers: 'osm', format:'image/png'} );
>>>>  >
>>>>  >
>>>>  > My wms.py looks like this:
>>>>  > import sys
>>>>  > from mapnik.ogcserver.modserver import ModHandler
>>>>  > sys.path.append('/var/www/wms/')
>>>>  >
>>>>  > handler = ModHandler('/var/www/wms/ogcserver.conf')
>>>>  >
>>>>  >
>>>>  > My ogcserver.conf is like this:
>>>>  > [server]
>>>>  >
>>>>  > module=mf_xml
>>>>  >
>>>>  > [service]
>>>>  >
>>>>  > title=Mapnik OGC Server
>>>>  >
>>>>  > abstract=YPC ARD Test GIS server.
>>>>  >
>>>>  > maxheight=512
>>>>  > maxwidth=512
>>>>  >
>>>>  > allowedepsgcodes=4326,900913
>>>>  >
>>>>  > # onlineresource:  A service level URL most likely pointing to the
>>>>  > web site
>>>>  > #                  supporting the service for example.  This is NOT
>>>>  > the online
>>>>  > #                  resource pointing to the CGI.
>>>>  >
>>>>  > onlineresource=http://localhost
>>>>  > maxage=604800
>>>>  >
>>>>  > # contact: Contact information.  Provides information to service
>>>>  > users on who
>>>>  > #          to contact for help on or details about the service.
>>>>  >
>>>>  >
>>>>  >
>>>>  >
>>>>  > And themodule mf_xml.py looks like this:
>>>>  > from mapnik.ogcserver.WMS import BaseWMSFactory
>>>>  >
>>>>  > class WMSFactory(BaseWMSFactory):
>>>>  >   def __init__(self):
>>>>  >     BaseWMSFactory.__init__(self)
>>>>  >     self.loadXML('/home/mapnik/osm.xml')
>>>>  >     self.finalize()
>>>>  >
>>>>  >
>>>>  > I am using the default osm.xml as the map file.
>>>>  >
>>>>  > Thanks
>>>>  >
>>>>  > _______________________________________________
>>>>  > 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
> 
> 

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

Reply via email to