GCPWRIT

Write GCPs to a text file


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

Back to top

Description


The GCPWRIT algorithm reads ground control points (GCP) from a specified GCP segment or layer and writes the GCP coordinates to a text file.
Back to top

Parameters


Name Type Length Value range
InputGCP: Input GCP segment or layer * GCP port 1 - 1  
Output GCP text file * String 1 -    
GCP format String 1 - 1 2D, 2DERR, 3D, 3DERR, BULK
Default: 3D
Deg/Min/Sec format String 0 - 1 ON, OFF
Default: OFF

* Required parameter
Back to top

Parameter descriptions

InputGCP: Input GCP segment or layer

The input GCP layer or segment to read.

Output GCP text file

The path and file name of the output text file to which to write the GCP coordinates.

For more information on the required format for the text file, see the description of the GCP format (GCPFORM) parameter.

Important: A file with the same name must not exist in the folder you specify.

GCP format

The code for the format of the input GCP data.

The codes are described as follows:

where:

Deg/Min/Sec format

This check box is clear by default, which means the output coordinates of longitude and latitude use real numbers or degrees/minutes/seconds/hemisphere strings. When selected, the latitude and longitude values are written to the output text file in DMS format. Apostrophe (') and quotation (") symbols are used as separators between degrees, minutes, seconds, and hemisphere strings.

This parameter is ignored if vector units are not LONG/LAT.

The DMS format for latitude and longitude is as follows:

where N, S, E, and W stand for the north, south, east, and west hemispheres, respectively.

For example:

latitude: 34d01'15.1104"N
longitude: 118d14'14.2080"W
Note: When the latitude and longitude values are written as floating-point numbers, the unit is degrees. A positive (negative) latitude is in the northern (southern) hemisphere, and a positive (negative) longitude is in the eastern (western) hemisphere.
Back to top

Details

The GCPWRIT algorithm writes GCP data from a specified GCP segment or layer to a text file. The GCP data may include check-point data. To specify the format of the GCP data in the output text file, you use the GCP format (GCPFORM) and Deg/Min/Sec format (DMSFORM) parameters.

A GCP may be intended for use with georeferencing control (a "true GCP"), or it may be intended for use in assessing the accuracy of a rectification result (a "check point" or a "check-point GCP"). The data written to the output text file includes a flag value (S) that distinguishes between the two.

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