Skip to content

Instantly share code, notes, and snippets.

@kgjenkins
Last active September 12, 2023 20:32
Show Gist options
  • Save kgjenkins/c31c63a3aad7cbdf827ec506405cb145 to your computer and use it in GitHub Desktop.
Save kgjenkins/c31c63a3aad7cbdf827ec506405cb145 to your computer and use it in GitHub Desktop.
Reclassifying UrbanWatch rasters using ArcGIS

Reclassifying UrbanWatch rasters using ArcGIS

See the video demo at https://youtu.be/mdYnBFYqXpg

The files here can be used to convert UrbanWatch rasters from RGB images to numeric rasters with simple landcover values 0-9, as follows:

Value Category Color
0 No Data Black
1 Building Red
2 Road Gray
3 Parking Lot Pink
4 Tree Canopy Dark Green
5 Grass/Shrub Light Green
6 Agriculture Yellow
7 Water Blue
8 Barren Brown
9 Other White

To save the files below, right-click the corresponding "Raw" button then "Save link as..."

0 0 0 0 255
1 255 0 0 255
2 133 133 133 255
3 255 0 192 255
4 34 139 34 255
5 128 236 104 255
6 255 193 37 255
7 0 0 255 255
8 128 0 0 255
9 255 255 255 255
FROM_ TO OUT MAPPING
0.000000000000000 0.000000000000000 0 ValueToValue
102.000000000000000 102.000000000000000 4 ValueToValue
255.000000000000000 255.000000000000000 7 ValueToValue
256.000000000000000 256.000000000000000 8 ValueToValue
360.000000000000000 360.000000000000000 5 ValueToValue
399.000000000000000 399.000000000000000 2 ValueToValue
510.000000000000000 510.000000000000000 1 ValueToValue
547.000000000000000 547.000000000000000 6 ValueToValue
702.000000000000000 702.000000000000000 3 ValueToValue
765.000000000000000 765.000000000000000 9 ValueToValue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment