Created
June 22, 2017 16:54
-
-
Save akanik/90c248da4f30d10fd5bc627a88a8963d to your computer and use it in GitHub Desktop.
Add leading zero(s) to FIPS codes in QGIS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #county | |
| right( ('000' || tostring( "myfield" )), 4) | |
| #state | |
| right( ('0' || tostring( "fips" )), 2) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks: https://gis.stackexchange.com/questions/62168/how-to-convert-numeric-fields-into-strings-with-leading-zeros