RAS2POLY

Convert a raster to polygons


EnvironmentsPYTHON :: EASI :: MODELER
Quick linksDescription :: Parameters :: Parameter descriptions :: Details :: Example :: Related

Back to top

Description


RAS2POLY converts a raster layer to a polygon layer.
Back to top

Parameters


Name Type Caption Length Value range
FILI * String Input file name 1 - 192  
DBIC * Integer Input raster channel 1 - 1  
FILO * String Output file name 1 - 192  
SMOOTHV String Smooth vectors 0 - 3 YES | NO
Default: YES
DBSD String Output segment descriptor 0 - 64 Default: Created from Raster
FTYPE String Output file type 0 - 4 See Parameter Details.
Default: PIX
FOPTIONS String Output file options 0 - 64  
MONITOR String Monitor mode 0 - 3 ON, OFF
Default: ON

* Required parameter
Back to top

Parameter descriptions

FILI

Specifies the file that contains the input raster channel to be processed.

DBIC

Specifies the input raster channel to be processed.

Ranges of channels or segments can be specified with negative values. For example, {1,-4,10} is internally expanded to {1,2,3,4,10}. When you are not specifying a range in this way, only 48 numbers can be specified explicitly.

FILO

Specifies the name of the file to which the new polygon layer will be saved. This file is created if it does not already exist.

SMOOTHV

Specifies whether or not the vector data will be smoothed (corners rounded).

If SMOOTHV is set to YES, the vector lines will be smoothed. If this parameter is set to NO, the created vector lines will follow the pixel edges exactly.

DBSD

Describes (in up to 64 characters) the contents or origins of the output data.

If this parameter is not specified, the default description is "Created from Raster".

FTYPE

Optionally specifies the output file format type, represented by a three- or four-letter code. The format type must be a GDB-recognized file type. If FILO specifies an existing file, FTYPE should not be specified since the existing file will be updated and its type won't be changed.

Supported file format codes include: The default value is PIX.

For a complete list of GDB-recognized file types and their codes, see GDB file formats in the Technical Reference section of the CATALYST Professional online Help.

FOPTIONS

Optionally specifies the file creation options to be applied when creating the output file. These are specific to the file format; in each case, the default of no options is allowed. FOPTIONS can be used to specify the compression schemes, file format subtypes, and other information.

Different options are available for different file types (see the FTYPE parameter). The options are described in GDB file formats in the Technical Reference section of the CATALYST Professional online Help.

MONITOR

The program progress can be monitored by printing the percentage of processing completed. A system parameter, MONITOR, controls this activity.

Available options are:

Back to top

Details

RAS2POLY creates a whole polygon layer based on an input raster. Each contiguous region of equal-valued pixels will be grouped together with polygon boundaries being created around its edge.

If the input is a thematic raster, attributes from that layer are transferred to the output polygon layer.

If you're trying to extract polygons that meet certain criteria from a raster, use EXPOLRAS.

Back to top

Example

Create a whole polygon layer based on channel 6 in irvine.pix and save the output vector layer to a new file, irv6poly.pix.

EASI> FILI     = "irvine.pix"      ! input raster file
EASI> DBIC     = 6                 ! using channel 6 from irvine.pix
EASI> FILO     = "irv6poly.pix"    ! output file to be created
EASI> SMOOTHV  =                   ! default, YES vectors are smoothed
EASI> DBSD     =                   ! defaults to "Created from Raster"
EASI> FTYPE    =                   ! default, PIX
EASI> FOPTIONS =                   ! output format options

EASI> run ras2poly

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