Reclassify by ASCII

939
2
Jump to solution
05-15-2017 08:08 PM
AnanG
by
New Contributor II

I want to reclassify the landuse map as follows:

Original code

Field

New code to be given

0100

Rice paddy

1

0200

Agricultural fields

2

0500

Forest

3

0600

Barren area – OTHERS

4

0700

Built up area

5

0901

Road

5

0902

Railway

5

1000

Other inland type

4

1100

Inland waters

6

1400

Coastal area

4

1500

Ocean

7

1600

Golf course

4

0000

Outside areas

4

 So I made an input ASCII remap files as follows:

# Remap Table for cell value reclassification
0100 : 1
0200 : 2
0500 : 3
0600 : 4
0700 : 5
0901 : 5
0902 : 5
1000 : 4
1100 : 6
1400 : 4
1500 : 7
1600 : 4
0000 : 4

The output that I wanted was the reclassified map with 7 unique values. I wanted codes like 0700, 0901 and 0902 to be merged together and given the value 5. However, my reclassified map looks like this. 

When I open the symbology window, I do not have the option of seeing the map by different attributes. 

When I do the reclassification manually, I get results like this.

What is wrong with my ASCII file? 

0 Kudos
1 Solution

Accepted Solutions
DanPatterson_Retired
MVP Emeritus

I suspect 0100 etc are not numeric ... 

  • Each assignment line maps a value or range of values from the input raster to an output value. Only numeric values are accepted on an assignment line.

View solution in original post

2 Replies
DanPatterson_Retired
MVP Emeritus

I suspect 0100 etc are not numeric ... 

  • Each assignment line maps a value or range of values from the input raster to an output value. Only numeric values are accepted on an assignment line.
AnanG
by
New Contributor II

Thank you! I changed the characters from strings to short integers and it worked! 

0 Kudos