VECREP

Vector segment report


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

Back to top

Description


Generates a report describing the contents of a specified vector segment.
Note: VECREP does not support topological polygon layers as input. You can convert topological polygons into whole polygons using TPOLY2POLY.
Back to top

Parameters


vecrep(file, dbvs, vrtype)

Name Type Caption Length Value range
FILE * str Input file name 1 -    
DBVS * List[int] Input vector segment 1 -    
VRTYPE str Vector report type 0 - 8 Default: SUMMARY

* Required parameter
Back to top

Parameter descriptions

FILE

Specifies the PCIDSK image file that contains the vector segment to describe.

DBVS

Specifies the input vector segment to be described in the the report.

Note: The input vector segment must be type 116.

VRTYPE

Specifies the type of vector segment report to be generated.

Supported types are:
Back to top

Details

VECREP writes the contents of the input vector segment (DBVS) held in a PCIDSK image file to the defined report device.

A report device must be selected. If the report device is OFF, VECREP will force its output to the user's terminal.

If vector coordinates are stored in LONG/LAT units, coordinates are reported as degrees, minutes, seconds, and hemisphere, rather than in real numbers.

Note: Because vector segments can contain very large amounts of data, this operation may result in reports hundreds of pages long.
Back to top

Example

Print a report of the attribute table in vector segment 25 on the demo file irvine.pix to the report file vectors.lis.

from pci.vecrep import vecrep

file	=	'irvine.pix'	# input file
dbvs	=	[25,26]	# input vector segments
vrtype	=	'TABLE'	# report type

vecrep( file, dbvs, vrtype )

Following is a portion of the resulting file contents:

 Shape Attribute    Group
     0   1700210        1
     1   1700210        2
     2   1700205        3
     3   1700210        4
     4   1700210        5
     5   1700210        6
     6   1700211        7
     7   1700211        8
     8   1700210        9
     9   1700210       10
    10   1700210       11
           ...

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