Re: [QGIS-Developer] Wrong results converting vectors to Float32 rasters

2020-10-28 Thread Pedro Venâncio
Hi Andrea, Thank you very much for pointing me in the right direction! Now I understand why, for instance, 0.25 was converted to 0.25 both in Float32 and Float64. That was really strange for me. No doubt that all come from the conversion of floating point numbers. However, this can be really

Re: [QGIS-Developer] Wrong results converting vectors to Float32 rasters

2020-10-28 Thread Andrea Giudiceandrea
Hi Pedro, "decimal" to float (IEEE754) conversion is unlikely an exact conversion: The most accurate representation of 0.22 in float single precision (32 bit) is 0.219988079071044921875 float double precision (64 bit) is 0.220001110223024625 So probably the different behavior is

[QGIS-Developer] Qt slot methods are not triggered

2020-10-28 Thread Miłosz Pigłas
Hi, I have very simple plugin with button, list and status bar: https://github.com/miloszpiglas/test_qgis_plugin. Button and list have attached slot methods, which should be triggered on certain events. But when I select item on list or click button nothing happens. The same code works fine as

[QGIS-Developer] Fwd: [TC-Announce] OGC Geopackage Standards Working Group updates its Charter; public comment requested

2020-10-28 Thread Even Rouault
Of potential interest. "Develop a logical model for GeoPackage so that future implementations can be separated from the current requirement to use SQLite." is intriguing -- Forwarded Message -- Subject: [TC-Announce] OGC Geopackage Standards Working Group updates its

[QGIS-Developer] Wrong results converting vectors to Float32 rasters

2020-10-28 Thread Pedro Venâncio
Hi all, I'm seeing a weird behaviour when converting vectors to rasters. I have a polygons layer with a "value" field that has 2 decimal places. Converting it to raster with gdal_rasterize, the output is different if I choose it as Float32 or Float64. Here is a sample Project:

Re: [QGIS-Developer] Developer Best Practice Suggestions

2020-10-28 Thread Richard Duivenvoorde
On 10/28/20 2:33 PM, C Hamilton wrote: > I tried submitting my first QGIS core code submission. See > > https://github.com/qgis/QGIS/pull/39655 > > As I was doing the pull request I found out that there were some scripts that > should have been run to check the coding style. Unfortunately,

Re: [QGIS-Developer] Developer Best Practice Suggestions

2020-10-28 Thread Jo
If I understand correctly, Windows 10 has a linux environment nowadays. No idea how to use it though, I prefer to work on Linux directly. Jo On Wed, Oct 28, 2020 at 2:34 PM C Hamilton wrote: > I tried submitting my first QGIS core code submission. See > >

[QGIS-Developer] Developer Best Practice Suggestions

2020-10-28 Thread C Hamilton
I tried submitting my first QGIS core code submission. See https://github.com/qgis/QGIS/pull/39655 As I was doing the pull request I found out that there were some scripts that should have been run to check the coding style. Unfortunately, those scripts are .sh scripts and I chose to develop on