|
Description
GCPPolyTransform() is used to apply a polynomial transformation to points based on the supplied GCPs.
Call Signature
int GCPPolyTransform ( int order, int num_GCPs, double ptr GCPsIn, double ptr GCPsOut, int num_points, double ptr points )
Return Value
int
A non-zero value is returned for success, 0 otherwise.
Arguments
intorder:
The polynomial order for the transformation.
int num_GCPs:
The number of GCPs supplied. Note that this is half the length of the GCP arrays.
double ptr GCPsIn:
An array of source GCP coordinates. The format is XYXYXY.
double ptr GCPsOut:
An array of destination GCP coodinates. The format is XYXYXY.
int num_points:
The number of points to transform
double ptr points:
An array of points to transform. XYXYXY format.
Remarks
GCPPolyTransform() is typically used to transform a set of pixel/line coordinates to long/lat coordinates, or vice-versa using a set of known GCPs. The GCPsIn can contain either long/lat or pixel/line coords as can the GCPsOut.
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.