[QGIS-Developer] Selecting dangle nodes with expression in processing

2025-01-20 Thread PIERRE Sylvain via QGIS-Developer
Hi I'm using an expression to select dangle lines on a vector layer : aggregate( layer:=@layer , aggregate:='count', expression:=id_graphe, filter:=intersects($geometry, end_point(geometry(@parent - 1 = 0 or aggregate( layer:= @layer , aggregate:='count', expression:=id_graphe, filter:=inter

[QGIS-Developer] native:package processing alg code

2024-10-14 Thread PIERRE Sylvain via QGIS-Developer
I devs, I don't find native:package processing alg code in my qgis install. Where Is it located ? Thanks [cid:image001.jpg@01DB1E29.C6517080] Sylvain PIERRE Chef de projet système d'information Direction des Systèmes d'Information et du Développement Numérique Service Projets et Ingénierie Num

[QGIS-Developer] lack of conflation tools

2024-05-30 Thread PIERRE Sylvain via QGIS-Developer
Hi devs and qgis power users, After investigating I can arg that there's a lack of conflation tools in QGIS like such existing for Esri : https://proceedings.esri.com/library/userconf/proc17/tech-workshops/tw_513-105.pdf Is there some plan or something I miss for doing such task in QGIS ? T

[QGIS-Developer] wrong VRT layer extent

2023-11-23 Thread PIERRE Sylvain via QGIS-Developer
Hi, Trying to simply export VRT layer , getting a wrong extent and exporting only extent of first raster part of VRT with this code : list_dalles = [] features = layer.selectedFeatures() for f in features: file_name = f['NOM_DALLE']+'.tif' dir_name

Re: [QGIS-Developer] Pyqgis how to append existing gpkg layer

2023-04-20 Thread PIERRE Sylvain via QGIS-Developer
the key is to define the options.actionOnExistingFile property, whose possible values are well documented here: https://api.qgis.org/api/3.28/classQgsVectorFileWriter.html#afda86eff21ac1da7dc42cbdde424acb1 Note: SInce we're using writeAsVectorFormatV3(), you need at least QGIS v3.20 for

[QGIS-Developer] Pyqgis how to append existing gpkg layer

2023-04-19 Thread PIERRE Sylvain via QGIS-Developer
Hi dev and users I don't understand how to append an existing gpkg layer with pyqgis. I've tried many QgsVectorFileWriter options self.options.actionOnExistingFile = QgsVectorFileWriter.CreateOrOverwriteLayer reset final layer And self.options.EditionCapability = QgsVectorFileWriter.CanAppendTo

Re: [QGIS-Developer] Pyqgis Close init form

2022-12-20 Thread PIERRE Sylvain via QGIS-Developer
init code? Is 'dialog' available in the code part in which you try to close it? Regards, Richard Duivenvoorde On 12/20/22 09:24, PIERRE Sylvain via QGIS-Developer wrote: > Hi all, > > I can not achieve closing a form in init pyqgis fonction. I try :

[QGIS-Developer] Pyqgis Close init form

2022-12-20 Thread PIERRE Sylvain via QGIS-Developer
Hi all, I can not achieve closing a form in init pyqgis fonction. I try : dialog.close() But form stay without any widgets I try dialog.parent().close() Does nothing dialog.parent().reject() Qgis crash Any hints ? Thanks [cid:image001.jpg@01D91454

[QGIS-Developer] PyQgis Standalone app from 3.4 to 3.16

2022-10-03 Thread PIERRE Sylvain via QGIS-Developer
Hi devs, I'm porting a PyQgis standalone app from 3.4 to 3.16 api. I get an error with the new 3.16 app QSqlDatabase: QPSQL driver not loaded QSqlDatabase: available drivers: The most visible change I noticed is python 3.7 to 3.9. Is there any impact on PyQt5 bindings ? With python 3.7 there w

Re: [QGIS-Developer] action get measure

2022-06-23 Thread PIERRE Sylvain via QGIS-Developer
prenez-a-reconnaitre-un-email-phishing/> Hi Sylvain, Do you want an interactive solution where the user should interactively draw a second point - or is the second point already in your data table? Andreas On 2022-06-23 14:42, PIERRE Sylvain via QGIS-Developer wrote: Hi , I want to build an action

[QGIS-Developer] action get measure

2022-06-23 Thread PIERRE Sylvain via QGIS-Developer
Hi , I want to build an action on a point layer, wich draw a line from a point and store the lenght inside a field layer. Is ther any way to do that ? Thanks Sylvain [cid:image001.jpg@01D8870F.73668F30] Sylvain PIERRE Chef de projet système d'information Direction des Systèmes d'Information et

Re: [QGIS-Developer] Drag and drop form function QdateEdit Widget init

2022-03-25 Thread PIERRE Sylvain via QGIS-Developer
DateTimeEdit. It's probably that you have to find a QDateTimeEdit rather than the Qt native one. Not 100% sure this is the issue though, but it won't hurt. Le ven. 25 mars 2022 à 09:11, PIERRE Sylvain via QGIS-Developer mailto:qgis-developer@lists.osgeo.org>> a écri

Re: [QGIS-Developer] Drag and drop form function QdateEdit Widget init

2022-03-25 Thread PIERRE Sylvain via QGIS-Developer
On 3/25/22 08:33, PIERRE Sylvain via QGIS-Developer wrote: > But this is not working with QDateEdit widget : > > today=date.today() > > control=dialog.findChild(QDateEdit,"date_insert") > > control.setDateTime(today) > > What is the right

[QGIS-Developer] Drag and drop form function QdateEdit Widget init

2022-03-25 Thread PIERRE Sylvain via QGIS-Developer
Hi, I build a form for a layer with drag and drop mode, and I use an init function to init some value for some widdget. I have no problem to do that with Qcombobox an QLineEdit widget : linedit_imat = dialog.findChild(QLineEdit,"code_eqpt") linedi

[QGIS-Developer] donuts charts

2022-03-18 Thread PIERRE Sylvain via QGIS-Developer
Hi all, Is there something already exists or planed to make a map with donuts charts instead of pie charts ? I do not find anything yet. Il I look at plotly, it seems realy simple : https://support.sisense.com/kb/en/article/donut-charts-%E2%80%94-plotly Do you think it should be difficult to man