2009-07-30 11:08:18 +00:00
|
|
|
"""@package __init__
|
|
|
|
/***************************************************************************
|
|
|
|
* *
|
|
|
|
* 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 is the main module of OpenStreetMap plugin for Quantum GIS.
|
|
|
|
It initializes the plugin, making it known to QGIS.
|
|
|
|
|
|
|
|
OSM Plugin is viewer and editor for OpenStreetMap data.
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
def name():
|
|
|
|
"""Function returns name of this plugin.
|
|
|
|
|
|
|
|
@return name of this plugin ~ OpenStreetMap plugin
|
|
|
|
"""
|
|
|
|
|
|
|
|
return "OpenStreetMap plugin"
|
|
|
|
|
|
|
|
|
|
|
|
def description():
|
|
|
|
"""Function returns brief description of this plugin.
|
|
|
|
|
|
|
|
@return brief description of this plugin.
|
|
|
|
"""
|
|
|
|
|
|
|
|
return "Viewer and editor for OpenStreetMap data"
|
|
|
|
|
|
|
|
|
|
|
|
def version():
|
|
|
|
"""Function returns version of this plugin.
|
|
|
|
|
|
|
|
@return version of this plugin
|
|
|
|
"""
|
2009-09-09 12:16:24 +00:00
|
|
|
from OsmPlugin import versionNumber
|
|
|
|
return "Version "+versionNumber()
|
2009-07-30 11:08:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
def qgisMinimumVersion():
|
|
|
|
"""Function returns information on what minimum version
|
|
|
|
of Quantum GIS this plugin works with.
|
|
|
|
|
|
|
|
@return minimum supported version of QGIS
|
|
|
|
"""
|
|
|
|
|
|
|
|
return "1.0.0"
|
|
|
|
|
2010-12-12 19:19:54 +00:00
|
|
|
def icon():
|
|
|
|
import resources_rc
|
|
|
|
return ":/plugins/osm_plugin/images/osm_load.png"
|
|
|
|
|
2009-07-30 11:08:18 +00:00
|
|
|
|
|
|
|
def classFactory(iface):
|
|
|
|
"""Function returns OSM Plugin instance.
|
|
|
|
|
|
|
|
@return instance of OSM Plugin
|
|
|
|
"""
|
|
|
|
|
2009-08-14 14:47:49 +00:00
|
|
|
from OsmPlugin import OsmPlugin
|
2009-07-30 11:08:18 +00:00
|
|
|
# return object of our plugin with reference to QGIS interface as the only argument
|
2009-08-14 14:47:49 +00:00
|
|
|
return OsmPlugin(iface)
|
2009-07-30 11:08:18 +00:00
|
|
|
|