| Environments | PYTHON :: EASI :: MODELER |
| Quick links | Description :: Parameters :: Parameter descriptions :: Details :: Example :: Related |
| Back to top |
| Back to top |
grdpol(filv, dbvs, file, dboc, fldnme, algo)
| Name | Type | Caption | Length | Value range |
|---|---|---|---|---|
| FILV | str | Input vector file name | 0 - | |
| DBVS * | List[int] | Input vector segment(s) | 1 - 16 | |
| FILE * | str | Output file name | 1 - | |
| DBOC | List[int] | Output raster channel(s) | 0 - 1 | |
| FLDNME | str | Field name | 0 - | Default: ATTRIBUTE |
| ALGO | str | Algorithm | 0 - 8 | POLYGON | EDGEFILL Default: POLYGON |
| Back to top |
FILV
Specifies the name of the file containing the vector segments to be rasterized. If this parameter is not specified, it will be assumed to be the same as FILE.
DBVS
Specifies the vector segment(s) containing the vectors from which the raster image will be constructed.
FILE
Specifies the name of the PCIDSK image file to receive the rasterized output.
DBOC
Specifies the raster channel to receive the rasterized output image. If this parameter is not specified, an output bitmap segment is created.
FLDNME
Specifies the field name that contains the values used to grid the polygons or edges.
If this parameter is specified as ZCOORD, the actual z-coordinates of the first vertex of each vector shape are used. Field names are not case-sensitive, and they do not need to be specified in complete form. If more than one match exists, the first name is used.
If the specified attribute does not exist and it is not ZCOORD, the ShapeIDs of the vector shapes are used for gridding.
If ALGO is set to EDGEFILL, the attribute value is taken from the seed points.
ALGO
Specifies the algorithm to use when converting polygons to rasters.
| Back to top |
GRDPOL takes an input polygon segment or arcs in vector segments and converts all inside areas to a raster image.
| Back to top |
Use GRDPOL to create raster polygon coverage based on polygons stored in segment 31 of the file 'irvine.pix'.
from pci.grdpol import grdpol filv = "" dbvs = [31] file = "irvine.pix" dboc = [8]; fldnme = "" # use default "ATTRIBUTE" algo = "" # use default "POLYGON" grdpol( filv, dbvs, file, dboc, fldnme, algo )
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.