File: __init__.py

package info (click to toggle)
thuban 1.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,596 kB
  • ctags: 5,301
  • sloc: python: 30,411; ansic: 6,181; xml: 4,127; cpp: 1,595; makefile: 166; sh: 101
file content (28 lines) | stat: -rw-r--r-- 841 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Copyright (c) 2003, 2004, 2008 by Intevation GmbH
# Authors:
# Jan-Oliver Wagner <jan@intevation.de> (2003, 2004)
# Didrik Pinte <dpinte@dipole-consulting.com> (2008)
#
# This program is free software under the GPL (>=v2)
# Read the file COPYING coming with Thuban for details.

# first try out whether we can import the required module OWSLib
ok = True
try:
    import owslib
except:
    print "Problems with OWSLib (not installed?)"
    ok = False

if ok:
    import wms

    from Thuban.UI.extensionregistry import ExtensionDesc, ext_registry
    from Thuban import _

    ext_registry.add(ExtensionDesc(
        name = 'WMS',
        version = '0.3.0',
        authors= [ 'Didrik Pinte', 'Jan-Oliver Wagner', 'Martin Schulze' ],
        copyright = '2003, 2004, 2008 Intevation GmbH',
        desc = _("Provide layers via OGC WMS.")))