Skip to main content
11 events
when toggle format what by license comment
Sep 1, 2021 at 13:08 comment added Geographos Now is fine. I have combined it also with the code presented here: gis.stackexchange.com/questions/140749/… and works really smoothly :)
Sep 1, 2021 at 12:57 vote accept Geographos
Sep 1, 2021 at 12:26 comment added J. Monticolo I added a r in front of path to consider the path string as raw, I think the error will disappear.
Sep 1, 2021 at 12:25 history edited J. Monticolo CC BY-SA 4.0
raw string for path
Sep 1, 2021 at 11:20 comment added Geographos Traceback (most recent call last): File "C:\PROGRA~1\QGIS3~1.12\apps\Python37\lib\code.py", line 90, in runcode exec(code, self.locals) File "<input>", line 1, in <module> File "<string>", line 18 SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
Sep 1, 2021 at 11:10 comment added J. Monticolo it would be more something like layer_name = layer.name(). And the error, is it the Layer not found error ?
Sep 1, 2021 at 10:40 comment added Geographos It throws error. Anyway, I am thinking also about combination it with rename an active layer. I have code like this: for layer in iface.layerTreeView().selectedLayers(): layer.setName('16h45m00s') then we could do sth like this: layer_name = layer.setName
Sep 1, 2021 at 10:18 history undeleted J. Monticolo
Sep 1, 2021 at 10:18 history edited J. Monticolo CC BY-SA 4.0
added 306 characters in body
Sep 1, 2021 at 10:04 history deleted J. Monticolo via Vote
Sep 1, 2021 at 9:59 history answered J. Monticolo CC BY-SA 4.0