Skip to content

Commit

Permalink
Release v0.0.1
Browse files Browse the repository at this point in the history
Use newest qgis_plugin_tools
  • Loading branch information
Joonalai committed Sep 15, 2020
1 parent 56d47f9 commit 77509a7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# CHANGELOG

### 0.0.1 - 15/09/2020
* Processing algorithm for Styles to Attributes
* Initial DockWidget with some of the fields required for data package
* Initial support for file exports of the datapackage snapshots
* Initial tests
20 changes: 1 addition & 19 deletions GemeindescanExporter/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QAction, QWidget
from qgis.PyQt import QtWidgets
from qgis.core import QgsVectorLayer, QgsApplication
from qgis.core import QgsApplication
from qgis.gui import QgisInterface

from .core.orig import Exporter
from .core.processing.provider import GemeindescanProcessingProvider
from .qgis_plugin_tools.tools.custom_logging import setup_logger
from .qgis_plugin_tools.tools.i18n import setup_translation, tr
Expand Down Expand Up @@ -139,13 +138,6 @@ def initGui(self):
parent=self.iface.mainWindow(),
add_to_toolbar=False
)
self.add_action(
"",
text=tr("original script"),
callback=self.run_orig,
parent=self.iface.mainWindow(),
add_to_toolbar=False
)

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

Expand Down Expand Up @@ -178,13 +170,3 @@ def run(self):

self.iface.addDockWidget(Qt.RightDockWidgetArea, self.dock_widget)
self.dock_widget.show()

# noinspection PyArgumentList
def run_orig(self):
"""Run method that performs all the real work"""
print("Hello QGIS plugin")
layer: QgsVectorLayer = self.iface.activeLayer()
if layer is not None:
exporter = Exporter()
exporter.write_layer(layer.name())
# QgsProject.instance().addMapLayer(f"{layer.name()}-snapshot")
2 changes: 1 addition & 1 deletion GemeindescanExporter/qgis_plugin_tools
Submodule qgis_plugin_tools updated 32 files
+3 −0 .gitattributes
+49 −22 README.md
+4 −0 infrastructure/creator.py
+92 −0 infrastructure/plugin_creator.py
+11 −0 infrastructure/template/plugin/__init__.py
+23 −0 infrastructure/template/plugin/build.py
+1 −0 infrastructure/template/plugin/logs/.gitignore
+16 −0 infrastructure/template/plugin/metadata.txt
+126 −0 infrastructure/template/plugin/plugin.py
+0 −0 infrastructure/template/plugin/resources/.gitignore
+0 −0 infrastructure/template/plugin/resources/i18n/.gitignore
+0 −0 infrastructure/template/plugin/resources/icons/.gitignore
+0 −0 infrastructure/template/plugin/resources/ui/.gitignore
+0 −0 infrastructure/template/plugin/test/__init__.py
+1 −0 infrastructure/template/plugin/test/pytest.ini
+2 −0 infrastructure/template/plugin/test/test_1.py
+26 −0 infrastructure/template/root/.github/workflows/release.yml
+32 −0 infrastructure/template/root/.github/workflows/tests.yml
+3 −0 infrastructure/template/root/.qgis-plugin-ci
+1 −0 infrastructure/template/root/CHANGELOG.md
+674 −0 infrastructure/template/root/LICENSE
+13 −0 infrastructure/template/root/README.md
+73 −0 infrastructure/template/root/docs/development.md
+2 −0 infrastructure/template/root/requirements.txt
+6 −2 testing/qgis_interface.py
+23 −4 tools/custom_logging.py
+31 −0 tools/decorations.py
+19 −0 tools/exceptions.py
+7 −2 tools/fields.py
+1 −1 tools/logger_processing.py
+7 −0 tools/resources.py
+26 −1 tools/version.py
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@
QGIS plugin to export data and styles to [Gemeindescan](https://gemeindescan.ch/de/).


### Installation instructions

The plugin can be installed by downloading a release from this
repository:

1. Download the latest release zip from GitHub releases (above).

2. Launch QGIS and the plugins menu by selecting Plugins - Manage and Install Plugins from the top menu.

3. Select the Install from ZIP tab, browse to the zip file you just downloaded, and click Install Plugin!


### Development

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

0 comments on commit 77509a7

Please sign in to comment.