Skip to main content
8 events
when toggle format what by license comment
Feb 7, 2022 at 12:56 history closed Bera
Taras
CommunityBot
Duplicate of Getting path of project or layer file in PyQGIS
Feb 7, 2022 at 12:25 comment added user30184 I believe that's about right. Pretty similar than to get the data provider and its uri dp = my_lyr.dataProvider() print(dp.uri()).
Feb 7, 2022 at 12:24 comment added Taras Does this answer your question? Getting path of project, or layer file in PyQGIS?, where you may be interested in this approach: >>>layerProvider = layer.dataProvider() >>>FilePath = layerProvider.dataSourceUri() >>>FilePath = os.path.dirname(unicode(FilePath))
Feb 7, 2022 at 12:08 review Close votes
Feb 7, 2022 at 12:57
Feb 7, 2022 at 11:59 history edited Vince CC BY-SA 4.0
naming
Feb 7, 2022 at 11:41 history edited PolyGeo CC BY-SA 4.0
edited tags; edited title
Feb 7, 2022 at 11:29 history edited Matt CC BY-SA 4.0
brevity
Feb 7, 2022 at 11:00 history asked Nunkuat CC BY-SA 4.0