forked from AstunTechnology/QGIS-Gazetteer-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
__init__.py
44 lines (41 loc) · 1.75 KB
/
__init__.py
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- coding: utf-8 -*-
"""
/***************************************************************************
gazetteerSearch
A QGIS plugin
Gazetteer
Search plugin
-------------------
begin : 2012-07-21
copyright : (C) 2012 by Nathan Woodrow
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
This script initializes the plugin, making it known to QGIS.
"""
import sys
import os
def name():
return "Gazetteer Search plugin"
def description():
return "Gazetteer Search plugin"
def version():
return "Version 0.1"
def icon():
return "icon.png"
def qgisMinimumVersion():
return "1.8"
def classFactory(iface):
# Add the directory that this file live in to the start of sys.path
# so that imports can be relative and our modules have the highest priority
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
# Load gazetteerSearch class from file gazetteerSearch
from gazetteersearch import gazetteerSearch
return gazetteerSearch(iface)