Timeline for Exporting layer to shapefile using PyQGIS?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 17, 2022 at 4:07 | comment | added | Mohammad ElNesr |
As @nnolde said, you cannot use \t or \n, because they are reserved as tab and new line, respectively. The best practice to use the forward slash to selarate folders, i.e., "C:/users/myname/desktop/test/hoopla.shp" or to add the raw processing character r before the string quotations. The former is compatible with windows, mac, and linux.
|
|
Dec 23, 2018 at 21:40 | comment | added | nilsnolde |
Just saw this: use RAW strings or Python will escape your characters: \t is a tab, which is obviously not allowed in filenames... Not a bug. r"C:\Users\Myname\Desktop\Test\hoppla.shp" sure works as expected..
|
|
Jan 26, 2017 at 8:07 | history | edited | PolyGeo♦ | CC BY-SA 3.0 |
deleted 25 characters in body
|
Dec 11, 2015 at 10:16 | comment | added | khannes | But the problem still exists in the 2.12.1 version ;) | |
Dec 10, 2015 at 15:20 | review | Late answers | |||
Dec 10, 2015 at 15:22 | |||||
Dec 10, 2015 at 15:17 | history | edited | khannes | CC BY-SA 3.0 |
extended examples
|
Dec 10, 2015 at 15:09 | history | edited | khannes | CC BY-SA 3.0 |
added 214 characters in body
|
Dec 10, 2015 at 15:05 | review | First posts | |||
Dec 10, 2015 at 15:07 | |||||
Dec 10, 2015 at 15:03 | history | answered | khannes | CC BY-SA 3.0 |