1 |
# Copyright (C) 2003, 2004 by Intevation GmbH |
# Copyright (C) 2003, 2004 by Intevation GmbH |
2 |
# Authors: |
# Authors: |
3 |
# Jan-Oliver Wagner <[email protected]> |
# Jan-Oliver Wagner <[email protected]> (2003, 2004) |
4 |
|
# Bernhard Herzog <[email protected]> (2004) |
5 |
|
# Martin Schulze <[email protected]> (2004) |
6 |
# |
# |
7 |
# This program is free software under the GPL (>=v2) |
# This program is free software under the GPL (>=v2) |
8 |
# Read the file COPYING coming with Thuban for details. |
# Read the file COPYING coming with Thuban for details. |
30 |
from Thuban.Model.proj import Projection |
from Thuban.Model.proj import Projection |
31 |
from Thuban.Model.extension import Extension |
from Thuban.Model.extension import Extension |
32 |
from Thuban.UI.command import registry, Command |
from Thuban.UI.command import registry, Command |
33 |
from Thuban.UI.mainwindow import main_menu |
from Thuban.UI.mainwindow import main_menu, layer_properties_dialogs |
34 |
from Thuban import _ |
from Thuban import _ |
35 |
import Thuban.UI.baserenderer |
import Thuban.UI.baserenderer |
|
from Thuban.UI.extensionregistry import ExtensionDesc, ext_registry |
|
36 |
|
|
37 |
from layer import WMSLayer |
from layer import WMSLayer |
38 |
|
|
|
ext_registry.add(ExtensionDesc( |
|
|
name = 'WMS', |
|
|
version = '0.1.0', |
|
|
authors= [ 'Jan-Oliver Wagner' ], |
|
|
copyright = '2003, 2004 Intevation GmbH', |
|
|
desc = _("Provide layers via OGC WMS."))) |
|
|
|
|
39 |
|
|
40 |
class WMSExtension(Extension): |
class WMSExtension(Extension): |
41 |
def TreeInfo(self): |
def TreeInfo(self): |
59 |
return () |
return () |
60 |
|
|
61 |
Thuban.UI.baserenderer.add_renderer_extension(WMSLayer, render_wms_layer) |
Thuban.UI.baserenderer.add_renderer_extension(WMSLayer, render_wms_layer) |
62 |
|
from properties import wmsProperties |
63 |
|
layer_properties_dialogs.add(WMSLayer, wmsProperties) |
64 |
|
|
65 |
|
|
66 |
class SelectWMSServer(wxDialog): |
class SelectWMSServer(wxDialog): |