Re: [QGIS-Developer] QgsMapLayerCombobox with multiple filters

2021-07-12 Thread pierluigi de rosa
Thanks a lot for your answer. I solved my problem P Il giorno lun 12 lug 2021 alle ore 19:56 Benjamin Jakimow < benjamin.jaki...@geo.hu-berlin.de> ha scritto: > Hi Pierluigi, > > you need to combine the Flags as binary Or ('|') : > >

Re: [QGIS-Developer] QgsMapLayerCombobox with multiple filters

2021-07-12 Thread Benjamin Jakimow
Hi Pierluigi, you need to combine the Flags as binary Or ('|') : self.overlayLayer_ComboBox.setFilters(QgsMapLayerProxyModel.PointLayer | QgsMapLayerProxyModel.LineLayer) /Benjamin On 2021-07-12 19:51, pierluigi de rosa wrote: Dear All, I'm experiencing some problems with the

[QGIS-Developer] QgsMapLayerCombobox with multiple filters

2021-07-12 Thread pierluigi de rosa
Dear All, I'm experiencing some problems with the QgsMapLayerComboBox. I would like to filter all line and polygon layer. Here below my code: self.overlayLayer_ComboBox.setFilters(QgsMapLayerProxyModel.PointLayer,QgsMapLayerProxyModel.LineLayer) But I have and Error. I can add only one layer

Re: [QGIS-Developer] Using environment variables in QGIS.ini

2021-07-12 Thread Bo Victor Thomsen
Hi Alexandre - Thanks for the heads-up regarding initialisation scripts and global settings file. Med venlig hilsen / Kind regards Bo Victor Thomsen Den 12-07-2021 kl. 10:54 skrev Alexandre Neto: Hi Bo, This is some old stuff we wrote at Boundless, I believe it still applies for QGIS

Re: [QGIS-Developer] Using environment variables in QGIS.ini

2021-07-12 Thread Alexandre Neto
Hi Bo, This is some old stuff we wrote at Boundless, I believe it still applies for QGIS today. https://boundless-desktop.readthedocs.io/en/latest/system_admins/index.html#for-system-administrators Both initialisation scripts and global setting file can help you with what you want to achieve.

Re: [QGIS-Developer] Question on @atlas_featureid

2021-07-12 Thread Andreas Neumann
Hi Matthias, Ok - this is the case here. ili2pg creates bigint pkeys. That explains why I see the "unrelated" internal pkeys from QGIS instead. It would be really nice if we had an option to create normal "integer" pkeys with ili2pg instead of bigint. Other GIS (like Geomedia) had issues

Re: [QGIS-Developer] Using environment variables in QGIS.ini

2021-07-12 Thread Bo Victor Thomsen
Hi Thomas - Your suggestion is actually pretty close to the solution I made - * Standard installation of QGIS with /standard/ .msi package. * After the QGIS installation and before QGIS is started the user do a one-time run a Python script from et central network drive -  using the

Re: [QGIS-Developer] Question on @atlas_featureid

2021-07-12 Thread Matthias Kuhn
Hi It depends on the implementation in the data provider (and normally on the data type for the primary key). In the postgres case, (up to) 32 bit integer primary keys are normally used as fid. With others like 64 bit integer, string or compound foreign keys it's not possible to stick to this