[QGIS-Developer] Conflict resolution while editing, missing API?

2021-02-11 Thread Alessandro Pasotti
Hi, I'm thinking about how to implement a conflict resolution feature (there have been some related talks in the issue tracker recently). Use case: multiple users editing the same feature in the same datasource (PG but not only PG) the last who saves wins. For instance: 1. User A starts editing

Re: [QGIS-Developer] Building QGIS with Visual Studio 2019 CE and vcpkg

2021-02-11 Thread Mats Taraldsvik
Hi Stefan, Thank you for this excellent guide to compile with vcpkg, it worked right away after me struggling with the official guide+CMake compilation for a couple of hours. I did make a few modifications that might help: 1. Release build: - geos_c.lib was detected automatically, and for some

Re: [QGIS-Developer] Do QgsGeometry constGet() e constParts() return non-modifiable or modifiable reference in PyQGIS?

2021-02-11 Thread Nyall Dawson
On Fri, 12 Feb 2021 at 05:13, Andrea Giudiceandrea wrote: > > Hi all, > is it expected that QgsGeometry constGet() and constParts() in PyQGIS return > modifiable objects? Yes -- python doesn't have any concept of "const", so ALL objects are modifiable as a result. > In the Python Console: > >

Re: [QGIS-Developer] [Qgis-user] A nice task for a community member: revamping the QGIS github landing page

2021-02-11 Thread Pedro Venâncio
I agree with Nyall. I think WebODM landing page is also a great source of inspiration: https://github.com/OpenDroneMap/WebODM Best regards, Pedro Nyall Dawson escreveu no dia quinta, 11/02/2021 à(s) 22:11: > Hi all! > > If someone's been looking for a great introductory task to start >

[QGIS-Developer] Do QgsGeometry constGet() e constParts() return non-modifiable or modifiable reference in PyQGIS?

2021-02-11 Thread Andrea Giudiceandrea
Hi all, is it expected that QgsGeometry constGet() and constParts() in PyQGIS return modifiable objects? In the Python Console: >>> geom=QgsGeometry.fromWkt( 'Point(16 41)' ) >>> geom_const=geom.constGet() >>> geom_const.transform(QgsCoordinateTransform(QgsCoordinateReferenceSystem("EPSG:4326"),

Re: [QGIS-Developer] Do QgsGeometry constGet() e constParts() return non-modifiable or modifiable reference in PyQGIS?

2021-02-11 Thread DelazJ
Hi Andrea, Funny (?). I had the same request: https://github.com/qgis/QGIS-Documentation/pull/6488 Regards, Harrissou Le jeu. 11 févr. 2021 à 20:13, Andrea Giudiceandrea a écrit : > Hi all, > is it expected that QgsGeometry constGet() and constParts() in PyQGIS > return > modifiable objects? >

[QGIS-Developer] A nice task for a community member: revamping the QGIS github landing page

2021-02-11 Thread Nyall Dawson
Hi all! If someone's been looking for a great introductory task to start contributing to QGIS, I'd like to put a call out for a volunteer to have a go at re-working the landing page (the README) that you see when you visit https://github.com/qgis/QGIS While the current text is all accurate,

Re: [QGIS-Developer] Do QgsGeometry constGet() e constParts() return non-modifiable or modifiable reference in PyQGIS?

2021-02-11 Thread DelazJ
Hi, Le jeu. 11 févr. 2021 à 23:49, Nyall Dawson a écrit : > On Fri, 12 Feb 2021 at 05:13, Andrea Giudiceandrea > wrote: > > > > Hi all, > > is it expected that QgsGeometry constGet() and constParts() in PyQGIS > return > > modifiable objects? > > Yes -- python doesn't have any concept of

Re: [QGIS-Developer] Do QgsGeometry constGet() e constParts() return non-modifiable or modifiable reference in PyQGIS?

2021-02-11 Thread Nyall Dawson
On Fri, 12 Feb 2021 at 12:54, DelazJ wrote: > > Hi, > > Le jeu. 11 févr. 2021 à 23:49, Nyall Dawson a écrit : >> >> On Fri, 12 Feb 2021 at 05:13, Andrea Giudiceandrea >> wrote: >> > >> > Hi all, >> > is it expected that QgsGeometry constGet() and constParts() in PyQGIS >> > return >> >