| Environments | PYTHON :: EASI :: MODELER |
| Quick links | Description :: Parameters :: Parameter descriptions :: Details :: Example |
| Back to top |
| Back to top |
| Name | Type | Caption | Length | Value range |
|---|---|---|---|---|
| FILE * | String | Input file name | 1 - 192 | |
| DBVS * | Integer | Input vector segment | 1 - 1 | |
| ZTRNSDIR | String | Z-value transfer direction | 0 - 9 | SHPTOATTR | ATTRTOSHP Default: SHPTOATTR |
| ZTRNSFLD | String | Name of destination field | 0 - 64 | |
| ZTRNSTYP | String | Date type for new attribute field | 0 - 7 | Default: INTEGER |
| AGGRTYPE | String | Aggregation method for z-values | 0 - 6 | Default: MEAN |
| FLDTOSHP | String | Attribute field to shape | 0 - 64 | |
| REPORT | String | Report mode | 0 - 192 | Quick links |
| Back to top |
FILE
Specifies the name of the PCIDSK database file containing the vector segment to process.
DBVS
Specifies the vector segment to process.
ZTRNSDIR
Specifies whether the z-value is transferred from the shape to the attribute, or from the attribute to shape vertices.
ZTRNSFLD
Specifies the name of the destination field to receive the z-value from the shape vertices.
The field can be any existing numeric field or a non-existing field which will be created.
This parameter is used only when the transfer direction (ZTRNSDIR) is set to 'Shape to attribute' (SHPTOATTR).
ZTRNSTYP
Specifies the data type to apply if a new field is created for the destination field.
This parameter is used only when a new destination field is created (ZTRNSFLD="newfieldname"). If the destination field already exists, the data type of the existing field is maintained.
AGGRTYPE
Specifies the method used to combine z-values of shapes.
FLDTOSHP
Specifies the numeric attribute field to supply the z-value to update the shape vertices.
This parameter is used only when the transfer direction (ZTRNSDIR) is 'Attribute to shape' (ATTRTOSHP).
REPORT
Specifies where to direct the generated report.
Available options are:
| Back to top |
ZVALTRANS is used to transfer the z-value of an input vector segment from a shape to its attribute, or from an attribute to its shape.
If the transfer direction is "shape to attribute", the z-value of a shape's vertices is transferred to an existing attribute field or to a new attribute field. If the function creates a new field, the user must specify the data type of this new field.
If the specified field exists, the transfer type (ZTRNSTYP) parameter is not used; instead, the z-value is converted to the data type of the existing field.
Z-values are written to the destination field in the data type defined by that field. For example, if the z-value is a real and the destination field is defined as an integer, the z-value is truncated to an integer.
If the transfer direction is from 'Attribute to shape', the attribute field must exist in the input vectorlayers attribute table. The field must be a numeric data type.
ZVALTRNS does not deal with an input layer of Topo Area or Table.
| Back to top |
The Input and output layer is segment 25 from file irvine.pix. The z-value will be transferred from shapes to a new attribute field named "New Field 1". The type of new field is "Double" and the transfer method is First.
EASI>file = "irvine.pix" EASI>dbvs = 25 EASI>ztrnsdir = "SHPTOATTR" EASI>ztrnsfld = "New Field 1" EASI>ztrnstyp = "Double" EASI>aggrtype = "First" EASI>fldtoshp = EASI>run ZVALTRNS
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.