コード例 #1
0
    def __init__(self,
                 title,
                 node_type=PluginGlobals.instance().NODE_TYPE_WFS_FEATURE_TYPE,
                 description=None,
                 status=None,
                 metadata_url=None,
                 params=None,
                 parent_node=None):
        """
        """
        FavoritesTreeNode.__init__(self, title, node_type, description, status,
                                   metadata_url, params, parent_node)

        self.service_url = params.get("url")
        self.feature_type_name = params.get("name")
        self.filter = params.get("filter")
        self.wfs_version = params.get("version", "1.0.0")
        self.layer_srs = params.get("srs")
        self.can_be_added_to_map = True

        # Icon
        plugin_icons = PluginIcons.instance()
        self.icon = plugin_icons.wfs_layer_icon
        if self.status == PluginGlobals.instance().NODE_STATUS_WARN:
            self.icon = plugin_icons.warn_icon
コード例 #2
0
    def __init__(self,
                 title,
                 node_type=PluginGlobals.instance().NODE_TYPE_WMTS_LAYER,
                 description=None,
                 status=None,
                 metadata_url=None,
                 params=None,
                 parent_node=None):
        """
        """
        FavoritesTreeNode.__init__(self, title, node_type, description, status,
                                   metadata_url, params, parent_node)

        self.service_url = params.get("url")
        self.layer_tilematrixset_name = params.get("tilematrixset_name")
        self.layer_name = params.get("name")
        self.layer_format = params.get("format")
        self.layer_srs = params.get("srs")
        self.layer_style_name = params.get("style", "")
        self.can_be_added_to_map = True

        # Icon
        plugin_icons = PluginIcons.instance()
        self.icon = plugin_icons.wms_style_icon
        if self.status == PluginGlobals.instance().NODE_STATUS_WARN:
            self.icon = plugin_icons.warn_icon
コード例 #3
0
    def __init__(self,
                 title,
                 node_type=PluginGlobals.instance().NODE_TYPE_FOLDER,
                 description=None,
                 status=None,
                 metadata_url=None,
                 params=None,
                 parent_node=None):
        """
        """

        FavoritesTreeNode.__init__(self, title, node_type, description, status,
                                   metadata_url, params, parent_node)

        # Icon
        plugin_icons = PluginIcons.instance()
        self.icon = plugin_icons.folder_icon
        if self.status == PluginGlobals.instance().NODE_STATUS_WARN:
            self.icon = plugin_icons.warn_icon
コード例 #4
0
    def __init__(self,
                 title,
                 node_type=PluginGlobals.instance().
                 NODE_TYPE_WFS_FEATURE_TYPE_FILTER,
                 description=None,
                 status=None,
                 metadata_url=None,
                 params=None,
                 parent_node=None):
        """
        """
        FavoritesTreeNode.__init__(self, title, node_type, description, status,
                                   metadata_url, params, parent_node)

        self.filter = params.get("filter")
        self.can_be_added_to_map = True

        # Icon
        plugin_icons = PluginIcons.instance()
        self.icon = plugin_icons.wfs_layer_icon
        if self.status == PluginGlobals.instance().NODE_STATUS_WARN:
            self.icon = plugin_icons.warn_icon
コード例 #5
0
    def __init__(self,
                 title,
                 node_type=PluginGlobals.instance().NODE_TYPE_WMS_LAYER_STYLE,
                 description=None,
                 status=None,
                 metadata_url=None,
                 params=None,
                 parent_node=None):
        """
        """

        FavoritesTreeNode.__init__(self, title, node_type, description, status,
                                   metadata_url, params, parent_node)

        self.layer_style_name = params.get("name")
        self.can_be_added_to_map = True

        # Icon
        plugin_icons = PluginIcons.instance()
        self.icon = plugin_icons.wms_style_icon
        if self.status == PluginGlobals.instance().NODE_STATUS_WARN:
            self.icon = plugin_icons.warn_icon
コード例 #6
0
    def __init__(
            self,
            title,
            node_type=PluginGlobals.instance().NODE_TYPE_GDAL_WMS_CONFIG_FILE,
            description=None,
            status=None,
            metadata_url=None,
            params=None,
            parent_node=None):
        """
        """
        FavoritesTreeNode.__init__(self, title, node_type, description, status,
                                   metadata_url, params, parent_node)

        self.gdal_config_file_path = os.path.join(
            PluginGlobals.instance().config_dir_path, params.get("file_path"))
        self.can_be_added_to_map = True

        # Icon
        plugin_icons = PluginIcons.instance()
        self.icon = plugin_icons.raster_layer_icon
        if self.status == PluginGlobals.instance().NODE_STATUS_WARN:
            self.icon = plugin_icons.warn_icon