-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcartogram3.py
35 lines (24 loc) · 1.02 KB
/
cartogram3.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
# -*- coding: utf-8 -*-
"""Distort a polygon map so that its area represent a field value."""
import os.path
from .lib import CartogramUserInterfaceMixIn, CartogramWorkOrchestratorMixIn
class Cartogram(CartogramUserInterfaceMixIn, CartogramWorkOrchestratorMixIn):
"""Distort a polygon map so that its area represent a field value."""
PLUGIN_NAME = "cartogram3"
def __init__(self, iface):
"""
Distort a polygon map so that its area represent a field value.
Arguments
---------
iface : qgis.core.QgsInterface
An interface instance that will be passed to this class
which provides the hook by which you can manipulate the QGIS
application at run time.
"""
self.iface = iface
self.plugin_dir = os.path.dirname(__file__)
super(Cartogram, self).__init__()
def unload(self):
"""Remove the plugin menu item and icon from QGIS GUI."""
self.remove_actions()
self.remove_processing_provider()