1 |
jan |
2404 |
# Copyright (c) 2003, 2004 by Intevation GmbH |
2 |
jan |
1943 |
# Authors: |
3 |
jan |
2404 |
# Jan-Oliver Wagner <[email protected]> (2003, 2004) |
4 |
jan |
1943 |
# |
5 |
|
|
# This program is free software under the GPL (>=v2) |
6 |
|
|
# Read the file COPYING coming with Thuban for details. |
7 |
jan |
2404 |
|
8 |
|
|
# first try out whether we can import the required module |
9 |
|
|
# of the PyOGCLib. |
10 |
|
|
ok = True |
11 |
|
|
try: |
12 |
|
|
import ogclib.WMSClient |
13 |
|
|
except: |
14 |
|
|
print "Problems with PyOGCLib (not installed?)" |
15 |
|
|
ok = False |
16 |
|
|
|
17 |
|
|
if ok: |
18 |
|
|
import wms |
19 |
|
|
|
20 |
|
|
from Thuban.UI.extensionregistry import ExtensionDesc, ext_registry |
21 |
|
|
from Thuban import _ |
22 |
|
|
|
23 |
|
|
ext_registry.add(ExtensionDesc( |
24 |
|
|
name = 'WMS', |
25 |
|
|
version = '0.2.0', |
26 |
|
|
authors= [ 'Jan-Oliver Wagner', 'Martin Schulze' ], |
27 |
|
|
copyright = '2003, 2004 Intevation GmbH', |
28 |
|
|
desc = _("Provide layers via OGC WMS."))) |