Created
February 9, 2024 15:28
-
-
Save Kirkman/d27cb5b30e7bbb16b5d247d29afa136a to your computer and use it in GitHub Desktop.
QGIS field calculator expression for converting SLMPD's numeric crime categories into Part I labels
This file contains 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
CASE | |
WHEN to_int("Crime" / 10000) = 1 THEN 'homicide' | |
WHEN to_int("Crime" / 10000) = 2 THEN 'rape' | |
WHEN to_int("Crime" / 10000) = 3 THEN 'robbery' | |
WHEN to_int("Crime" / 10000) = 4 THEN 'assault' | |
WHEN to_int("Crime" / 10000) = 5 THEN 'burglary' | |
WHEN to_int("Crime" / 10000) = 6 THEN 'larceny' | |
WHEN to_int("Crime" / 10000) = 7 THEN 'auto' | |
WHEN to_int("Crime" / 10000) = 8 THEN 'arson' ELSE '' | |
END | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment