RAS2THMR

Add attributes to a raster channel


EnvironmentsPYTHON :: EASI :: MODELER
Batch ModeYes
Quick linksDescription :: Parameters :: Parameter descriptions :: Details :: Related

Back to top

Description


RAS2THMR creates a thematic raster layer by creating a linked attribute table for the input raster data. The attribute table includes information about the input raster, such as the unique pixel value, the area covered by each unique pixel value and, when classification metadata is present, class names and descriptions.
Back to top

Parameters


Name Type Length Value range
InputRaster: Input raster channel * Raster port 1 - 1  
OutputRaster: Output file name * Raster port 1 -    
Create attributes String 0 - 1 Area Only| Area Perimeter
Default: Area Only
NoData value Float 0 - 1  

* Required parameter
Back to top

Parameter descriptions

InputRaster: Input raster channel

Specifies the input raster channel to be processed.

OutputRaster: Output file name

Specifies the output thematic raster; this consists of a raster and a linked attribute table, stored in a vector segment.

Create attributes

Specifies which attributes to add to the output data.

You can create an attribute table containing either of the following:

Note: Computing the perimeter for a thematic raster can be time-consuming. Also, because of the nature of rasters, the perimeter values tend to be substantially larger than the corresponding values for polygon areas.

NoData value

Specifies a NoData (or background) value for the input channel. Pixels with this value are excluded from processing.

If no value is specified for this parameter, the NoData value for the channel is taken from the input layer metadata.

Back to top

Details

RAS2THMR creates a thematic raster layer from an input raster layer with an associated attribute table. The attribute table is stored as a vector layer, which is linked to the raster output channel through metadata.

The attribute values can include Area only or Area and Perimeter. These values are calculated based on the pixels of the input raster channel.

If the input raster contains suitable classification metadata, that information is automatically transferred to the appropriate fields in the output attribute table. That is, when the input raster is the result of a PCI classification process, two addtional fields, Name and Description, are created in the output thematic raster.

The segment name and descriptor are created automatically from the input raster file.

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