Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

demiurg/ogcserver-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

This is based on ogcserver cgi wms handler.

simply import * from utils.py

and use like so:

def wms_view(request):
    class WMSFactory(BaseWMSFactory):
        def __init__(self):
            BaseWMSFactory.__init__(self)

            layer = mapnik.Layer('name')
            #important for some reason to initialize
            layer.wms_srs = None
            #everything like in ogcserver docs
    return ogc_response(request, WMSFactory())

About

Mapnik WMS integrated as Django view

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages