[QGIS-Developer] [solved] weird RuntimeError: qgis._gui cannot import type '����' from PytQT5.QtCore"

2023-01-30 Thread Even Rouault via QGIS-Developer
Hi, just to avoid other people losing a couple hours like me... If you update to latest master on Debian/Ubuntu, and after rebuild, you get a cryptic error like the following when importing qgis_gui: # PYTHONPATH=output/python QGIS_PREFIX_PATH=output python3 -c "from qgis._gui import *" Tra

Re: [QGIS-Developer] Call for emergency 3.22 release

2023-02-01 Thread Even Rouault via QGIS-Developer
Dereferencing a null dataProvider() seems to me to be a recurrent class of (crashing) bugs (I've for sure fixed such issues several times) My idea is probably a bit silly, but what about https://gist.github.com/rouault/ed533d30738bda806ebeaa47f0877e2c ? Basically: - deprecate dataProvider()

[QGIS-Developer] Stricter policy for LTR backport ? (was Re: Call for emergency 3.22 release)

2023-02-02 Thread Even Rouault via QGIS-Developer
Hi, I guess one point of improvement is to really implement a policy that was discussed in the past, that is that after let's say half the total period of support of the LTR only "critical" bugfixes are allowed into it, with critical being for example defined as: - fix a regression introduce

Re: [QGIS-Developer] How does QGIS parses the shapefile so quickly

2023-03-27 Thread Even Rouault via QGIS-Developer
Le 27/03/2023 à 10:06, Alessandro Pasotti via QGIS-Developer a écrit : Hi, QGIS is using the GDAL/OGR library to read the shapefiles. which uses shapelib On Mon, Mar 27, 2023 at 9:51 AM 余 绍健 via QGIS-Developer wrote: Dear All, Sorry to interrupt, I'm newer to QGIS, whe I use QIGS, I fin

Re: [QGIS-Developer] qgis ubuntu 20.04 dependencies

2023-06-19 Thread Even Rouault via QGIS-Developer
Building recent QGIS versions on 20.04 is going to be quite a lot of pain since you'll need indeed to have a qt 5.15 build, and all the other auxiliary QT based dependencies build against it. I'd suggest you update to 22.04 at least. Or if you don't want to do development but can live with rel

Re: [QGIS-Developer] qgis ubuntu 20.04 dependencies

2023-06-19 Thread Even Rouault via QGIS-Developer
/blob/master/.docker/qgis3-qt5-build-deps.dockerfile - Fedora 38 for QG6 builds: https://github.com/qgis/QGIS/blob/master/.docker/qgis3-qt6-build-deps.dockerfile On Mon, Jun 19, 2023 at 2:34 PM Even Rouault wrote: Building recent QGIS versions on 20.04 is going to be quite a lot of

Re: [QGIS-Developer] Enhancing QGIS Development and Security Features Proposition

2023-11-03 Thread Even Rouault via QGIS-Developer
Rhea, * - Proposition would be a feature that allows users to limit Python console functionality based on their needs. If you have in mind to limit the set of functionality available in the Python console, that's not technically doable, at least with the CPython interpreter. All you

Re: [QGIS-Developer] unsubscribing is unsuccessful

2024-01-16 Thread Even Rouault via QGIS-Developer
Rhea, I've just unsubscribed you (from the admin interface) Even Le 16/01/2024 à 18:17, Rhea via QGIS-Developer a écrit : Hello, I’ve been trying to unsubscribe its been months now and it’s not working, i keep on receiving emails as if im still part of the list. I followed this link : https

Re: [QGIS-Developer] Strange Mysql (spatial) behaviour: no points visible

2024-01-23 Thread Even Rouault via QGIS-Developer
Richard, I've failed to reproduce. Here's my testing procedure: docker run --name gdal-mysql1 -e MYSQL_ROOT_PASSWORD=passwd -e "MYSQL_ROOT_HOST=%" -p 33060:3306 -d mysql:8.0.34 mysqld --default-authentication-plugin=mysql_native_password docker exec gdal-mysql1 sh -c "echo 'CREATE DATABASE tes

Re: [QGIS-Developer] Strange Mysql (spatial) behaviour: no points visible

2024-01-23 Thread Even Rouault via QGIS-Developer
I'll try to debug the current db, and I've asked the people to create a test db (which hopefully then has the same issue :-) ) I'm not familiar with MySQL but I guess there must be some dump & restore commands that could be used to exactly replicate a setup where the bug triggers? -- h

Re: [QGIS-Developer] Strange Mysql (spatial) behaviour: no points visible

2024-01-23 Thread Even Rouault via QGIS-Developer
Le 23/01/2024 à 20:43, Richard Duivenvoorde a écrit : Ah, oo :-) I can reproduce now in the docker! After seeing src/core/providers/ogr/qgsogrprovider.cpp:3236 : (crs) [0ms] no spatial reference found in the debug info of that other db, I thought to try to load the data WITHOUT telling it

Re: [QGIS-Developer] Qt6 builds and plugins -- ready for testing!

2024-01-27 Thread Even Rouault via QGIS-Developer
Richard, There's something weird with your installation. According to https://salsa.debian.org/qt-kde-team/extras/qwt/-/blob/debian/master/src/qwt_plot_layout.h?ref_type=heads#L84, this should be |constQRectF& plotRect, Options options = Options());| According to https://packages.debian.org

Re: [QGIS-Developer] Strange Mysql (spatial) behaviour: no points visible

2024-01-28 Thread Even Rouault via QGIS-Developer
onsequence, it seems safer to disable spatial filtering on layers with geographic coordinates with MySQL... That's just what I've done in https://github.com/OSGeo/gdal/pull/9152 . Hopefully that will fix those issues with geometries not appearing. Obviously performance will not be op

Re: [QGIS-Developer] Strange Mysql (spatial) behaviour: no points visible

2024-01-28 Thread Even Rouault via QGIS-Developer
But, my point: why can QGIS apparently show attributes, while not showing a geom.. Apparently the features were fully retrieved. When displaying the attribute table, QGIS doesn't apply a spatial filter. Whereas when displaying features on the canvas, it does. And as I found out, something's

Re: [QGIS-Developer] Strange Mysql (spatial) behaviour: no points visible

2024-01-28 Thread Even Rouault via QGIS-Developer
ST_GeomFromText('POINT(-179.5 0)', 4326, 'axis-order=long-lat')); Le 28/01/2024 à 19:04, Even Rouault via QGIS-Developer a écrit : Richard, what I don't understand is how you manage to create with ogr2ogr a table without explicit SRS with features whose coordi

Re: [QGIS-Developer] Theoretical discussion: A QGIS paid plugin marketplace?

2024-01-31 Thread Even Rouault via QGIS-Developer
Hi Nyall, It would seem tricky that qgis.org both offers/promotes a gratis & FOSS "market place" (the current official plugin repository), and a paid one. That could be conceived, but if qgis.org would promote in some way the paid market place, this would create some expectation on the quali

Re: [QGIS-Developer] [Qgis-psc] Theoretical discussion: A QGIS paid plugin marketplace?

2024-02-07 Thread Even Rouault via QGIS-Developer
I’m not sure if I would want this marketplace being hosted by QGIS itself and being access through the current Plugin Manager. I prefer the idea of QGIS being clearly free… but at the same time maybe it’s not that bad if there is a mix of free and paid plugin at the same place, as long as it’

Re: [QGIS-Developer] QGIS plugin depends on pypi package

2024-02-08 Thread Even Rouault via QGIS-Developer
Le 09/02/2024 à 00:45, John Lindsay via QGIS-Developer a écrit : Hello, I believe that I've solved my earlier issue with my QGIS plugin, which previously relied on a pip package. In order to avoid this dependency, I decided to include the Whitebox Workflows wheel in with my plugin. Unfortunat

Re: [QGIS-Developer] Backporting qt6 sip bindings to 3.34?

2024-02-09 Thread Even Rouault via QGIS-Developer
Le 10/02/2024 à 00:07, Nyall Dawson via QGIS-Developer a écrit : Hey list, What does everyone think about us backporting the python/PyQt6/ directory from master to the 3.34 branch? I'm thinking we could do this as "orphan"/unused files, with the intention that it would make backporting to th

Re: [QGIS-Developer] GDAL processing algorithms issues due the default output layer extensions weirdly changed

2024-02-25 Thread Even Rouault via QGIS-Developer
I'm not sure if that explains the family of bugs seen, but as those settings are a *integer* index in the list returned by QgsVectorFileWriter::supportedFormatExtensions() or QgsRasterFileWriter::supportedFormatExtensions() , they depend both on the QGIS list of known formats which may evolve o

Re: [QGIS-Developer] Compiling against homebuilt GDAL

2024-02-28 Thread Even Rouault via QGIS-Developer
Thomas, Le 28/02/2024 à 19:33, Thomas Larsen Wessel via QGIS-Developer a écrit : I have successfully built QGIS and GDAL (3.7.2) separately. Now I want to build QGIS against this GDAL. This is what I tried: git clone g...@github.com:qgis/QGIS.git cd QGIS mkdir build cd build GDAL_DIR=/home/vel

Re: [QGIS-Developer] Compiling against homebuilt GDAL

2024-03-12 Thread Even Rouault via QGIS-Developer
details about what is failing? It took some time to find the VERBOSE=1 option, but even with verbose output I don't understand what is going on. Is it On Thu, Feb 29, 2024 at 8:52 AM Matthias Kuhn wrote: On Wed, Feb 28, 2024 at 7:45 PM Even Rouault via QGIS-Developer

Re: [QGIS-Developer] Build problems using install instructions -building branches

2024-05-20 Thread Even Rouault via QGIS-Developer
Hi, The procedure at https://github.com/qgis/QGIS/blob/master/INSTALL.md#39-building-different-branches is more for developers to create feature branches and submit pull requests To just built the release-3_36 branch, Assuming that "origin" is your remote pointing to https://github.com/qgis

Re: [QGIS-Developer] WKT from QgsGeometry incompatible with OGR

2024-07-05 Thread Even Rouault via QGIS-Developer
Hi, Both formats are compliant with the WKT specifications. Are they? I may have missed something in the Simple Features spec, but looking at https://portal.ogc.org/files/?artifact_id=25355 , I can't see where it would allow the form {geometryTypeName}Z without a space between {geometryType

Re: [QGIS-Developer] WKT from QgsGeometry incompatible with OGR

2024-07-06 Thread Even Rouault via QGIS-Developer
à 08:56, Even Rouault via QGIS-Developer a écrit : Hi, Both formats are compliant with the WKT specifications. Are they? I may have missed something in the Simple Features spec, but looking at https://portal.ogc.org/files/?artifact_id=25355 , I can't see where it would allo

Re: [QGIS-Developer] qgis / ogr converts INT & DATE values from spatial view to STRING

2024-07-22 Thread Even Rouault via QGIS-Developer
Benjamin, Explicit casts like "(CAST(SUM(D.QAI) as INTEGER) as n_qai" did not solve my problem. Yeah, I recently came across a similar issue, and the finding is that it is related to the SQLite version. Such casts apparently work since SQLite 3.42. So if your QGIS build uses an older SQLit

Re: [QGIS-Developer] qgis / ogr converts INT & DATE values from spatial view to STRING

2024-07-22 Thread Even Rouault via QGIS-Developer
I've reported the issue to the OGC GeoPackage specification issue tracker: https://github.com/opengeospatial/geopackage/issues/683 Le 22/07/2024 à 15:57, Even Rouault via QGIS-Developer a écrit : Benjamin, Explicit casts like "(CAST(SUM(D.QAI) as INTEGER) as n_qai" did not s

Re: [QGIS-Developer] Is there a recommended GDAL version for QGIS 3.34?

2024-09-03 Thread Even Rouault via QGIS-Developer
For operational uses, I would say the latter is the better. For regression test purposes, some tests might perhaps need tweaking/skipping depending on the GDAL version. CI uses GDAL 3.4.1 for QT5 testing and 3.7.3 for QT6 testing. > Background/motivation for asking: I have tried compiling dif

<    1   2   3   4   5