Skip to content

Instantly share code, notes, and snippets.

@akanik
Created June 22, 2017 16:54
Show Gist options
  • Select an option

  • Save akanik/90c248da4f30d10fd5bc627a88a8963d to your computer and use it in GitHub Desktop.

Select an option

Save akanik/90c248da4f30d10fd5bc627a88a8963d to your computer and use it in GitHub Desktop.
Add leading zero(s) to FIPS codes in QGIS
#county
right( ('000' || tostring( "myfield" )), 4)
#state
right( ('0' || tostring( "fips" )), 2)
@akanik
Copy link
Copy Markdown
Author

akanik commented Jun 22, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment