Skip to main content
9 events
when toggle format what by license comment
Jun 11, 2020 at 15:27 history edited CommunityBot
Commonmark migration
Apr 20, 2019 at 14:29 vote accept Alex Tereshenkov
Jan 10, 2018 at 9:41 comment added LaughU @AlexTereshenkov I've tried a bit around and found a solution which just replaces whitespaces with underscores ( see edit)
Jan 10, 2018 at 9:40 history edited LaughU CC BY-SA 3.0
added correct way
Jan 10, 2018 at 9:40 comment added Alex Tereshenkov no worries! Always good to know how to use Python for scripting in QGIS, helpful concepts.
Jan 10, 2018 at 9:29 comment added LaughU @AlexTereshenkov ah you are right. I missed it while quickly trying this approach, my bad. I will leave the answer still as a reference if you dont mind
Jan 10, 2018 at 9:20 comment added Alex Tereshenkov Thanks, it's helpful to be able to rename the layers in batch using Python after they have been added. The basename variable however would return just the database name, so it doesn't make sense to set all the layers' names to be the database names. But I got the idea, thanks anyway.
Jan 10, 2018 at 8:47 history edited LaughU CC BY-SA 3.0
grammer...
Jan 10, 2018 at 8:41 history answered LaughU CC BY-SA 3.0