Initializing classes from a text file

You can initialize a new set of classes using the Class Initialization window. You can import entries for the class table from a text file.

Class or aggregate details are stored as text (.txt) files. To import this information, it must conform to a single recognizable format. The file is limited to one class per line and has seven fields delimited by a | character:

Value | Name | Red | Green | Blue | Desc | AssociatedDesc

The following is an example of a text file that contains three classes:

 1|	Water	|0    |0    	 |255	| Water class|  |

 2|	Crop	|0    |255	|0     |Crops|           |

 3|	Other	|255	|0    	|0     	|Water class|  |
  1. From the Class Initialization window, click the Text File tab.
  2. Click Text File.
  3. In the File Selector window, locate and select the file containing the classes you want to import, and click Open. If you want to replace all current classes, select the Overwrite existing classes check box.
  4. Click OK.

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.