I'm trying to split a vector layer into new layers based on one field. The field is string type but when I run the tool, a message saying 'Creation of field fid failed (OGR error: Wrong field type for fid)' comes up. Before running I created a folder to store the output layers.
Any idea about what I have to change or what the right type field is, please?
The output should be many layers as unique values the field have.
-
Well, what is your field type for your FID field?, please check the properties of your layer in QGIS. As far as I am aware it should be an Integer64MarcM– MarcM2020年11月17日 19:30:10 +00:00Commented Nov 17, 2020 at 19:30
-
FID field was string and I changed to Integer64 and finally it works. It would be useful to add a note on the tool, to specify the type of field that you need. Great, many thanks for your help! @MarcMSenda– Senda2020年11月18日 09:14:58 +00:00Commented Nov 18, 2020 at 9:14
-
Glad it worked. I have adapted my comment in an answer for future reference.MarcM– MarcM2020年11月18日 09:19:34 +00:00Commented Nov 18, 2020 at 9:19
1 Answer 1
Answer for future reference:
Change your field type
of FID to Integer64
instead of String
.