Is there a PyQGIS way to check if an active layer iface.activeLayer()
is not a GeoPackage format?
-
1Please, do not forget about "What should I do when someone answers my question?"Taras– Taras ♦2022年03月24日 14:15:03 +00:00Commented Mar 24, 2022 at 14:15
1 Answer 1
You can use:
if iface.activeLayer().storageType() != 'GPKG':
print('Active layer is not a GeoPackage format')
answered Apr 16, 2021 at 21:51
Explore related questions
See similar questions with these tags.
lang-py