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

Reply via email to