/[thuban]/branches/WIP-pyshapelib-bramz/Extensions/wms/__init__.py
ViewVC logotype

Annotation of /branches/WIP-pyshapelib-bramz/Extensions/wms/__init__.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2404 - (hide annotations)
Sat Nov 20 21:26:06 2004 UTC (20 years, 3 months ago) by jan
Original Path: trunk/thuban/Extensions/wms/__init__.py
File MIME type: text/x-python
File size: 784 byte(s)
Added registry entry and the importing
of the actual wms module. Included a test for the required PyOGCLib.

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.")))

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26