Re: [QGIS-Developer] Offline layer
OK :) I assumed that would be more detailed than the Pyqgis developers' cookbook. On 2/02/22 19:53, matteo wrote: Hi Patrick, mmm where? https://qgis.org/pyqgis/master/search.html?q=isOfflineEditable&check_keywords=yes&area=default I was wondering if there is a list of all the custom properties available for the layer, but I cannot find it. Also the QgsMapLayer.setCustomProperty does not explicitly list the keys available: https://qgis.org/pyqgis/master/core/QgsMapLayer.html#qgis.core.QgsMapLayer.setCustomProperty Cheers and thanks Matteo ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] Offline layer
Hi Harrissou, that's a good question. From what I understood the icon/flag is added "manually" when needed (by QFieldSync, Offline editing plugin, etc). Not sure how/when it should removed: maybe changing the data source is still pointing to an offline layer. At the beginning I was thinking that if a layer was "converted" to offline and for example put into a geopackage, then some additional metadata were added in some additional table within the geopackage itself. But now I understand that the flag is manually added by the developer Cheers Matteo ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] Offline layer
Hi Patrick, mmm where? https://qgis.org/pyqgis/master/search.html?q=isOfflineEditable&check_keywords=yes&area=default I was wondering if there is a list of all the custom properties available for the layer, but I cannot find it. Also the QgsMapLayer.setCustomProperty does not explicitly list the keys available: https://qgis.org/pyqgis/master/core/QgsMapLayer.html#qgis.core.QgsMapLayer.setCustomProperty Cheers and thanks Matteo ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] Offline layer
In theory, it should be in the pyqgis api documentation https://qgis.org/pyqgis/master/ On 2/02/22 01:53, matteo wrote: Hi David, got it, and issue solved thanks! I cannot find a list of all custom property keys in the documentation, is there any available? Cheers Matteo ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] Offline layer
Hi, And question: should the offline icon be removed after the data sources have been updated? Regards, Harrissou Le 1 février 2022 13:53:15 GMT+01:00, matteo a écrit : >Hi David, > >got it, and issue solved thanks! > >I cannot find a list of all custom property keys in the documentation, >is there any available? > > >Cheers > >Matteo >___ >QGIS-Developer mailing list >QGIS-Developer@lists.osgeo.org >List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] Offline layer
Hi David, got it, and issue solved thanks! I cannot find a list of all custom property keys in the documentation, is there any available? Cheers Matteo ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] Offline layer
Hi Matteo It's considering the custom property "isOfflineEditable". You should be able to set/unset it with pyqgis. Cheers Dave On Tue, Feb 1, 2022, 11:49 matteo wrote: > Hi all, > > loading a project with many offline layers next to each layer an offline > icon appears 8and that's correct :) ). > > I've changed the data source of all the layers but the offline icon is > still there. I'm struggling to understand where can I turn it off but I > cannot find it in the layer properties and/or via pyqgis. > > Does someone have suggestions? > > Cheers and thanks! > > Matteo > ___ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] Offline layer
Hi all, loading a project with many offline layers next to each layer an offline icon appears 8and that's correct :) ). I've changed the data source of all the layers but the offline icon is still there. I'm struggling to understand where can I turn it off but I cannot find it in the layer properties and/or via pyqgis. Does someone have suggestions? Cheers and thanks! Matteo ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer