Hello,
I want to create a unique numeric ID in a new attribute field from a two-letters string attribute, this way:
feature - ID
AA - 1
AB - 2
AC - 3
BA - 1
BB - 2
CA - 1
CB - 2
etc...
I guess I need to count how many times a letter is listed and then create IDS for every count and repeat but I don't know how to do this.
Many thanks,
Max
Best answer by bwn
As long as it is a 2 character identifier and it is the first character that resets the ID Counter every time it changes:
Hi @max_d Is the ID based only on the 2nd character in the string?
HiDanatsafe, indeed, the ID is based on the first one character in the string . A,B,C,D, etc.
nice idea!
Thank you Bwn, it's working really well!
17 votes
14 votes
12 votes
10 votes
9 votes
7 votes
6 votes
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.
We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.