Git Product home page Git Product logo

qgis2mapbender's Introduction

QGIS2Mapbender

Description

QGIS plugin to populate Mapbender with QGIS-Server WMS.

Installation and Requirements

Installing the plugin

  • To install the plugin, simply copy the folder with the plugin code into your QGIS profile folder:
    • Windows: C:\Users{USER}\AppData\Roaming\QGIS\QGIS3\profiles{PROFILE}\python\plugins\
    • Linux: /home/{USER}/.local/share/QGIS/QGIS3/profiles/{PROFILE}/python/plugins

Requirements on your local system

  • The QGIS project must be saved in the same folder as the data.
  • Install fabric2 e.g. using the QGIS console if the library is not already installed:
    import pip
    pip.main(['install', 'fabric2'])
    

Requirements on your server

  • QGIS Server is installed on your server.
  • Mapbender is installed on your server.
  • Create at least one template application in Mapbender (that will be cloned and used to publish a new WMS) or an application that will be used to publish a new WMS. These applications should have at least one layer set:
    • layer set named "main" (default layer set for adding a new WMS to the application) OR
    • layer set named with any other name (in this case, the name of the layer set should be specified when using the plugin)

Support

[email protected]

License

The plugin is licensed under the attached GNU General Public License.

qgis2mapbender's People

Contributors

cviescaa avatar pgipper avatar chrigw avatar

Stargazers

Jörg Thomsen avatar

Watchers

Max Tobias Weber avatar Astrid Emde avatar  avatar Thorsten Hack avatar Hannes avatar Robert.K avatar Frederik Häfker avatar Jörg Thomsen avatar

qgis2mapbender's Issues

Random errors in Python (Library fabric2)

Environment:
Windows 11 Pro - QGIS version 3.34.4

I occasionally get the following error when publishing a Mapbender's project:
Ein Fehler trat bei der Ausführung von Python-Code auf: invoke.exceptions.ThreadException: Saw 1 exceptions within threads (AttributeError): Thread args: {'kwargs': {'buffer_': [], 'hide': False, 'output': None}, 'target': >} Traceback (most recent call last):   File "C:\Users\pf\AppData\Roaming\Python\Python39\site-packages\invoke\util.py", line 211, in run     super().run()   File "C:\PROGRA~1\QGIS33~1.4\apps\Python39\lib\threading.py", line 917, in run     self._target(*self._args, **self._kwargs)   File "C:\Users\pf\AppData\Roaming\Python\Python39\site-packages\invoke\runners.py", line 775, in handle_stdout     self._handle_output(   File "C:\Users\pf\AppData\Roaming\Python\Python39\site-packages\invoke\runners.py", line 747, in _handle_output     self.write_our_output(stream=output, string=data)   File "C:\Users\pf\AppData\Roaming\Python\Python39\site-packages\invoke\runners.py", line 729, in write_our_output     stream.write(string) AttributeError: 'NoneType' object has no attribute 'write' ......................................

This happens both with the normal Mapbender installation on the server as well as with Mapbender on Docker.

This problem only occurs in Windows when the Python console is not open: in fact, the "factory2" library throws an error when it tries to write to standard output (Python console).

die in der auth db gespeicherten Zugangsdaten zum Server gehen verloren, wenn andere Konfiguartionseinträge geändert werden

  1. Serverkonfiguration anlegen, dabei 'save credentials in auht DB' wählen
  2. konfig speichern
  3. projekt veröffentlichen
  4. Dialog Serverkonfiguration erneut aufrufen
  5. einen Eintrag ändern, der nicht in der Box Authentication steht z.B. name der Verbindung
  6. konfig speichern
  7. projekt veröffentlichen

-> Connection failed. Reason: Authentication failed.

erwartetes Verhalten: credentials bleiben erhalten/gespeichet, wenn andere Konfig-Einträge geändert werden.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.