Skip to content

Commit 77509a7

Browse files
author
Joonalai
committed
Release v0.0.1
Use newest qgis_plugin_tools
1 parent 56d47f9 commit 77509a7

4 files changed

Lines changed: 20 additions & 20 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
# CHANGELOG
2+
3+
### 0.0.1 - 15/09/2020
4+
* Processing algorithm for Styles to Attributes
5+
* Initial DockWidget with some of the fields required for data package
6+
* Initial support for file exports of the datapackage snapshots
7+
* Initial tests

GemeindescanExporter/plugin.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@
2222
from PyQt5.QtGui import QIcon
2323
from PyQt5.QtWidgets import QAction, QWidget
2424
from qgis.PyQt import QtWidgets
25-
from qgis.core import QgsVectorLayer, QgsApplication
25+
from qgis.core import QgsApplication
2626
from qgis.gui import QgisInterface
2727

28-
from .core.orig import Exporter
2928
from .core.processing.provider import GemeindescanProcessingProvider
3029
from .qgis_plugin_tools.tools.custom_logging import setup_logger
3130
from .qgis_plugin_tools.tools.i18n import setup_translation, tr
@@ -139,13 +138,6 @@ def initGui(self):
139138
parent=self.iface.mainWindow(),
140139
add_to_toolbar=False
141140
)
142-
self.add_action(
143-
"",
144-
text=tr("original script"),
145-
callback=self.run_orig,
146-
parent=self.iface.mainWindow(),
147-
add_to_toolbar=False
148-
)
149141

150142
QgsApplication.processingRegistry().addProvider(self.processing_provider)
151143

@@ -178,13 +170,3 @@ def run(self):
178170

179171
self.iface.addDockWidget(Qt.RightDockWidgetArea, self.dock_widget)
180172
self.dock_widget.show()
181-
182-
# noinspection PyArgumentList
183-
def run_orig(self):
184-
"""Run method that performs all the real work"""
185-
print("Hello QGIS plugin")
186-
layer: QgsVectorLayer = self.iface.activeLayer()
187-
if layer is not None:
188-
exporter = Exporter()
189-
exporter.write_layer(layer.name())
190-
# QgsProject.instance().addMapLayer(f"{layer.name()}-snapshot")

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55
QGIS plugin to export data and styles to [Gemeindescan](https://gemeindescan.ch/de/).
66

77

8+
### Installation instructions
9+
10+
The plugin can be installed by downloading a release from this
11+
repository:
12+
13+
1. Download the latest release zip from GitHub releases (above).
14+
15+
2. Launch QGIS and the plugins menu by selecting Plugins - Manage and Install Plugins from the top menu.
16+
17+
3. Select the Install from ZIP tab, browse to the zip file you just downloaded, and click Install Plugin!
18+
19+
820
### Development
921

1022
Refer to [development](docs/development.md) to instructions for developing the plugin.

0 commit comments

Comments
 (0)