Re: [Qgis-user] Compass Direction App
Hi Krishna,You could create an action on the map canvas with some lines of python code to achieve your needed function. There is an official tutorial for actions: 5.4. Lesson: Actions — QGIS Documentation documentationdocs.qgis.orgBest regards,ChristophAm 22.07.2024 um 23:50 schrieb krishna Ayyala via QGIS-User :Hello,I have a qgis map with a points layer.These red points are proposed towers. When I click anywhere on the map, I should get a popup message indicating the distance to the nearest tower and the direction (NE,NW,SE,SW) to the nearest tower. Is there any app that can do this job?Regards. ___QGIS-User mailing listQGIS-User@lists.osgeo.orgList info: https://lists.osgeo.org/mailman/listinfo/qgis-userUnsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user___ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Export to PostgreSQL in Model Designer
Hello everyone, I want expand a model to export the model output directly to a specific table in a postgresql database. The model builder offers input field for database, schema and table. These input fields are connected automatically. Now I want to use these user inputs for the algorithm Export to PostgreSQL, but in the three fields Database, Schema and Table of this algorithm, I can only select the database user input. The schema and table form the user input is not available in the window of the algorithm configuration. Does anybody have a hint for me what I should do, so that I can use the user inputs for schema and table in the algorithm for the Postgres export? Best regards, Christoph ___ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Add context menu to map canvas
Hello everyone, I try to add a new entry to the map canvas context menu using the following two documentations: https://docs.qgis.org/3.28/en/docs/pyqgis_developer_cookbook/canvas.html#add-items-to-map-canvas-contextual-menu https://github.com/qgis/QGIS-Documentation/issues/5842 Adding a new menu entry from the python console works like a charm. Now I want to provide the context menu through a plugin. But I am not able to connect the context menu with a signal declared as a function in the same class, where I want to connect it. I receive the message, that my plugin class has no method „addMenu“. This is my code snippet: from qgis.PyQt.QtWidgets import QMenu from qgis.gui import QgsMapMouseEvent import json class SmallworldShortcutPlugin: def __init__(self, iface): self.iface = iface self.canvas = self.iface.mapCanvas() self.canvas.contextMenuAboutToShow.connect(self.populateContextMenu) The function populateContextMenu is the same as in the documentation. But if I declare the function outside of the class in the same python file, it works very well (of course without calling the function on self). Does anybody has a hint for me how to connect the map canvas context menu with a function from a class? Or is it the right way to declare the function to be connected with the context menu outside of a class? Best regards, Christoph ___ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Attributes form with Color widget
Hello everyone, A try to use a Color widget in an attributes form. I tried the widget with a text field containing colours as hex code. But changing the colour has no effect on the text value and changing the text value has no effect on the color. Does anybody know how to use the color widget? Best regards, Christoph ___ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] WMTS via QGIS Server
Thank you very much for your explanations, Jorge :) > Am 24.04.2023 um 15:07 schrieb Jorge Gustavo Rocha via QGIS-User > : > > Hi Christoph, > > The WMTS service provide tiles. It does not provide a file system access to > the tiles. > > If you want to have the tiles on the file system, you need to use a caching > software do support such workflow. You can do that with a QGIS Server plugin > or using a cache software, like MapProxy. I use MapProxy with QGIS Server and > this software stack runs smoothly. Such kind of software allows you to define > policies regarding tile updating. > > Regards, > > Jorge Gustavo > >> On 24/04/23 09:53, Christoph Jung via QGIS-User wrote: >> Hello everyone, >> >> The documentation of QGIS Server is excellent, but unfortunately I did not >> found the information, where the QGIS Server stores the requested tiles of a >> published WMTS and how long the requested tiles will be not removed/updated >> or something else. Does anybody have experience with WMTS served via QGIS >> Server and knows, where the tiles will be located and how long they will >> exist? >> >> Best regards, >> Christoph >> ___ >> QGIS-User mailing list >> QGIS-User@lists.osgeo.org >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user > > -- > Jorge Gustavo Rocha > Geomaster, LDA > "Take the open source journey with us" > > VAT/NIF: PT 510 906 109 > Phone: +351 253 257 173 (landline) > Mobile: +351 910 333 888 (cellular) > > Rua Afonso Palmeira, 31, 7 D > 4715-278 Braga > PORTUGAL > GPS 41.54627, -8.40432 > > ___ > QGIS-User mailing list > QGIS-User@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user ___ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] WMTS via QGIS Server
Hello everyone, The documentation of QGIS Server is excellent, but unfortunately I did not found the information, where the QGIS Server stores the requested tiles of a published WMTS and how long the requested tiles will be not removed/updated or something else. Does anybody have experience with WMTS served via QGIS Server and knows, where the tiles will be located and how long they will exist? Best regards, Christoph ___ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] QGIS server : Serve Postgis data ?
Hi, Did you stored the username and password for connecting the Postgres-DB in an authentication configuration? And did you provide an environment variable with the path to a file containing the master password within? If not, please have a look into the really good and complete documentation about authentication in QGIS desktop and server: https://docs.qgis.org/3.28/en/docs/user_manual/auth_system/auth_workflows.html#qgis-server-support https://docs.qgis.org/3.28/en/docs/user_manual/auth_system/auth_overview.html#master-password Best regards, Christoph > Am 27.03.2023 um 18:09 schrieb celati Laurent via QGIS-User > : > > > Good afternoon, > Following to my previous message, I'm sharing my error. I am unable to serve > a project containing postgis tables. For a first test, I'm just trying to > serve one of the tables contained in my project. Here is the URL that I > defined and tested. I tried to define max and min coordinates (BBOX) in the > spatial reference system in 2154 (Lambert 93). > > > http://SERVEUR/cgi-bin/qgis_mapserv.fcgi?MAP=/home/qgis/projects/cigeo_forages.qgs&LAYERS=Cigeo_Zios_Po&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:2154&WIDTH=400&HEIGHT=200&BBOX=865347.7454,6820554.3899,886533.8979,6833234.8104 > > Please read below the error message : Internal Server Error > > The server encountered an internal error or misconfiguration and was unable > to complete your request. > Please contact the server administrator at webmaster@localhost to inform them > of the time this error occurred, and the actions you performed just before > this error. > More information about this error may be available in the server error log. > If someone has any idea? To be complete, since the beginning of my tests, I > have never had a log file generated in /var/log/qgis...This folder has been > always remained empty > Thanks a lot. > >> Le lun. 27 mars 2023 à 11:48, celati Laurent a >> écrit : >> Good morning, >> I have just (finally) validated the installation of Qgis server on our >> Debian server. >> I manage to serve/broadcast the .qgs project and the data made available by >> the community (world.qgs project). These are shp files. >> In parallel with the installation of Lizmap or QWC2, I would like to test >> this time the fact to serve of qgis projects containing postgis tables from >> our database. How to do this ? Especially for the definition of the URL? How >> to define in the URL the sources of the postgis tables? The URL notably has >> a LAYERS&... >> How for example to publish all the postgis tables contained in a project, >> without having to specify each of them in the URL? >> Thank you so much. > ___ > QGIS-User mailing list > QGIS-User@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user ___ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] QGIS Server and Active Directory
Thank you for the advice, Alessandro. I will have a look on it. > Am 30.08.2022 um 11:45 schrieb Alessandro Pasotti : > > Hi, > > not out of the box, but you might be able to develop a Python server > plugin to implement custom authorization/authentication for the > server. > > A few examples are available here: > https://github.com/elpaso/qgis3-server-vagrant/tree/master/resources/web/plugins > > see httpbasic for example. > > >> On Tue, Aug 30, 2022 at 11:39 AM Christoph Jung via Qgis-user >> wrote: >> >> Hello everyone, >> >> Does anybody have experience with the authorisation of web services >> published by the QGIS Server, especially using AD users/groups? Is it >> possible to create services that are usable without further action for some >> authorised users and all other users cannot consume this services? >> >> Kind regards, >> Christoph >> ___ >> Qgis-user mailing list >> Qgis-user@lists.osgeo.org >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user > > > > -- > Alessandro Pasotti > QCooperative: www.qcooperative.net > ItOpen: www.itopen.it ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] QGIS Server and Active Directory
Hello everyone, Does anybody have experience with the authorisation of web services published by the QGIS Server, especially using AD users/groups? Is it possible to create services that are usable without further action for some authorised users and all other users cannot consume this services? Kind regards, Christoph ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] WMS/WMTS Problem [QGIS 3.16]
Hi Samuel, Open the network/debug console (pressing F12) to geht the getCapabilities/getMap-Requests. Than copy a request that is not working in QGIS and try it in your web browser. If you get a response in your browser, there is a good chance that your proxy settings aren’t correct. Best regards, Christoph > Am 22.08.2022 um 11:14 schrieb sam via Qgis-user : > > > Hello everyone, > > I have a problem with the use of WMS. > When I try to load a new layer, it always says that my host is unfindable. > I tried with many URLs and it's always the same problem. > > Is that a Proxy problem or something ? You can find attached a screen of my > Proxy configuration. > > Thank you in advance for your help ! > > Samuel > > ___ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user