Re: [Qgis-user] Get the translation of a core string in Python

2023-10-11 Per discussione Michel Stuyts via QGIS-User
in Python Moin Michel, On Tue, 03. Oct 2023 at 11:04:26 +, Michel Stuyts via QGIS-User wrote: > In for example the file "qgis_nl.ts" I found the translated value for > "Loading Plugins": You also need to know the context of the translati

[Qgis-user] Get the translation of a core string in Python

2023-10-03 Per discussione Michel Stuyts via QGIS-User
t; I found the translated value for "Loading Plugins": Loading Plugins Plug-ins laden But I want to use that translation in a Python plugin. Does anybody know what the way is to get the translation of a core string using Pyt

Re: [Qgis-user] geometry generator - unexpected results

2020-04-17 Per discussione Michel Stuyts
The numbers you need to use in “rand(-10, 10), rand(-10, 10)” depend on the CRS of your layer. I tested it with some demo data in EPSG:31370 and I got a similar result as you. When I changed those numbers I got a better result. After you changed those, you can play around with that 100 inside

Re: [Qgis-user] python qgis 3 adding features fails partly

2019-02-28 Per discussione Michel Stuyts
You can add an empty table to QGIS but it depends on the definition of your geometry column. This table can be added: CREATE TABLE public.test ( id oid NOT NULL, naam text COLLATE pg_catalog."default" NOT NULL, geom geometry(Point,31370), CONSTRAINT test_pkey PRIMARY KEY (id) )

Re: [Qgis-user] QGIS 3.4.3 becoming unusable for me on Windows 10

2019-01-11 Per discussione Michel Stuyts
You can use the Python variable qgis.utils.plugin_times to find out how long each plugin takes to load at startup of QGIS. For end users I created a plugin that shows the information of that Python variable with a pie chart and a list of all plugins. This plugin is called "Plugin Load Times"

Re: [Qgis-user] WMTS fail on loading - QGIS 3.4

2018-11-16 Per discussione Michel Stuyts
Did you set your own API token, because the word YOUR_API_TOKEN in the uri in the error suggests you didn't. Michel Van: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] Namens Ian Reese Verzonden: vrijdag 16 november 2018 0:30 Aan: qgis-user@lists.osgeo.org Onderwerp: [Qgis-user] WMTS

Re: [Qgis-user] qgz format and non-ascii project names

2018-07-19 Per discussione Michel Stuyts
the problem originates when saving the project file, not when loading it. Michel Van: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] Namens Michel Stuyts Verzonden: donderdag 19 juli 2018 15:23 Aan: Qgis-user@lists.osgeo.org Onderwerp: Re: [Qgis-user] qgz format and non-ascii project names Confirmed

[Qgis-user] XYZ Connection Referer

2018-07-04 Per discussione Michel Stuyts
In the settings of a XYZ Tiles Connection there is a setting called "Referer". What is it used for? Michel ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe:

Re: [Qgis-user] click on raster outline to make it visible

2018-05-25 Per discussione Michel Stuyts
I tried the following in the Python console: test="F:\Ingelmunster\riolering\infraxscans\tif2/331-Meulebekestraat_Leon_Bekaertstraat_Mandesweg_GP_deel2.tif" print(test) F:\Ingelmunster iolering\infraxscans

Re: [Qgis-user] click on raster outline to make it visible

2018-05-25 Per discussione Michel Stuyts
It looks like the \r in the path is interpreted as a carriage return and the \t as a tab and so a part of the path is missing for GDAL. Maybe you can try to replace the \ by \\. Info on Escape Sequences: - http://python-reference.readthedocs.io/en/latest/docs/str/escapes.html

Re: [Qgis-user] results Measure Tool vs. length()

2018-05-23 Per discussione Michel Stuyts
...@gmail.com] Verzonden: dinsdag 22 mei 2018 23:37 Aan: Michel Stuyts <michel.stu...@edegem.be> CC: Micha Silver <tsvi...@gmail.com>; qgis-user <qgis-user@lists.osgeo.org> Onderwerp: Re: [Qgis-user] results Measure Tool vs. length() The measure tool measures elipsoidal dista

Re: [Qgis-user] results Measure Tool vs. length()

2018-05-22 Per discussione Michel Stuyts
: Micha Silver [tsvi...@gmail.com] Verzonden: vrijdag 18 mei 2018 17:41 Aan: Michel Stuyts; qgis-user Onderwerp: Re: [Qgis-user] results Measure Tool vs. length() Maybe I misunderstood your question, but you *should* expect different length, area and direction calculations when converting from one

Re: [Qgis-user] results Measure Tool vs. length()

2018-05-18 Per discussione Michel Stuyts
Van: Julien Guilloux [mailto:julien.guill...@ecrins-parcnational.fr] Verzonden: vrijdag 18 mei 2018 11:01 Aan: Michel Stuyts <michel.stu...@edegem.be>; Springfield Harrison <stellar...@gmail.com>; qgis-user <qgis-user@lists.osgeo.org> Onderwerp: Re: [Qgis-user] results Measure Too

Re: [Qgis-user] results Measure Tool vs. length()

2018-05-18 Per discussione Michel Stuyts
$length gives the same result as length($geometry) Michel Van: Springfield Harrison [mailto:stellar...@gmail.com] Verzonden: vrijdag 18 mei 2018 2:52 Aan: Michel Stuyts <michel.stu...@edegem.be> CC: qgis-user <qgis-user@lists.osgeo.org> Onderwerp: Re: [Qgis-user] results Measure Too

[Qgis-user] results Measure Tool vs. length()

2018-05-17 Per discussione Michel Stuyts
In the length() function QGIS uses the CRS unit of the layer to calculate the result. When I use for example a layer in a local CRS like EPSG:31370 or EPSG:5439 and a layer in EPSG:3857 (that all use meters as unit) the results are very different (+40% difference). Changing the project CRS

Re: [Qgis-user] Adding an OpenWeatherMap WMS layer using PyQGIS

2018-04-24 Per discussione Michel Stuyts
OpenWeatherMap deprecated WMS support. You should use their XYZ tiles Service: https://tile.openweathermap.org/map/{layer}/{z}/{x}/{y}.png?appid={api_key} More info on: https://openweathermap.org/api/weathermaps Michel On 23 April 2018 at 21:28, Xristos Xristoou

[Qgis-user] segments_to_lines & @geometry_part_num in QGIS 2.99 & 3.0

2018-03-06 Per discussione Michel Stuyts
When creating a style for a polygon layer I noticed a difference between QGIS 2.99 (Windows standalone installer) and QGIS 3.0 (OSGeo4W) when I use segments_to_lines & @geometry_part_num. * I created a polygon layer and added some polygons. * Then I started editing the layer style:

Re: [Qgis-user] Polygon Dimensioning in QGIS

2018-02-08 Per discussione Michel Stuyts
Paolo, I used your example as a starting point to create a qml style file that adds dimensions to all segments of the border of simple polygons, without an extra line layer. I used the geometry generator to create some marker lines and arrows. I also added the area in the center of the

Re: [Qgis-user] Generating black white from RGB landsat using Raster Map calculator?

2018-01-17 Per discussione Michel Stuyts
Chas, If I have a color GEOTIFF and I want to show or save it as a grayscale GEOTIFF, I use one of these 2 solutions. Depending on the control you want on the color to grayscale conversion it might also be a solution for you. Solution 1: If the only thing you want to do is show a colour