| Environments | PYTHON :: EASI |
| Quick links | Description :: Parameters :: Parameter descriptions :: Return Value :: Details :: Example |
| Back to top |
| Back to top |
pntrefn(oeproji, refnmode, gcpres, tpres, oeprojo, pointopt, mintp, refnopt, imstat)
| Name | Type | Caption | Length | Value range |
|---|---|---|---|---|
| OEPROJI * | str | Input OrthoEngine project file | 1 - | |
| REFNMODE * | str | Refinement mode | 4 - | PROG | DIRECT Default: PROG |
| GCPRES | List[float] | Maximum GCP residual | 0 - 1 | -5 - 1000 |
| TPRES | List[float] | Maximum TP residual | 0 - 1 | -5 - 1000 |
| OEPROJO * | str | Output OrthoEngine project file | 1 - | |
| POINTOPT * | str | Options for rejected points | 3 - | INACT | DEL Default: INACT |
| MINTP | List[int] | Minimum number of TPs | 0 - 1 | |
| REFNOPT | str | Options for rejected points | 0 - | |
| IMSTAT | List[float] | Output PNTREFN statistics | 0 - |
| Back to top |
OEPROJI
The path and file name of the OrthoEngine project file (*.prj) containing the points you want to refine.
REFNMODE
The mode of refinement to use: progressive or direct.
In progressive (PROG) mode, points greater than 1,000, 500, 100, 20, and 10 pixels, respectively, are removed iteratively before applying the maximum GCP residual, maximum TP residual, or both, as specified for GCPRES and TPRES, respectively.
In direct (DIRECT) mode, the maximum residual specified is applied exclusively.
GCPRES
The maximum residual for x and y per GCP.
For example, to refine the OrthoEngine project until all GCPs have a residual of two or less in both the x and y direction, enter 2.
If the entered value is negative, it uses outlier method to remove points. Any points within an image have residuals from the mean value greater than -GCPRES * standard deviation of the image would be removed.
TPRES
The maximum residual for x and y per TP.
For example, to refine the OrthoEngine project until all TPs have a residual of two or less in both the x and y direction, enter 2.
If the entered value is negative, it uses outlier method to remove points. Any points within an image have residuals from the mean value greater than -TPRES * standard deviation of the image would be removed.
OEPROJO
The path and file name of the output OrthoEngine project file to which to write the refined TPs, GCPs, or both.
You can specify your input project as your output project; however, by doings so, the input file will be overwritten with the new information.
POINTOPT
The disposition of the rejected points.
That is, on completion of refinement, you can elect to either render the rejected points inactive (INACT) or delete (DEL) them.
MINTP
The minimum number of TPs per image.
Images with fewer than the minimum number of TPs before and after refinement will be rendered inactive.
REFNOPT
Refinement options. Current supported options are UPDATE_ANGLES, NO_CHECK and NO_MESSAGE.
IMSTAT
| Back to top |
Returns: Execution status
Type: PCI_INT
| Back to top |
PNTREFN refines TPs and GCPs in an OrthoEngine project file.
In direct mode, the specified residual is applied exclusively.
Processing is complete when the specified residual is reached.
| Back to top |
In the following example, TPs and GCPs are designated inactive until the x and y residual for each meets the specified GCP and TP residual.
from pci.pntrefn import pntrefn oeproji = "airphoto_model.prj" refnmode = "prog" #Progressive mode gcpres = [1.0] #Refine until remaining GCPs have an x-residual and a y-residual of 1 tpres = [2.0] #Refine until remaining TPs have an x-residual and a y-residual of 2 oeprojo = "refined.prj" pointopt = "inact" #Designate refined points inactive mintp = [10] #Designate images with fewer than 10 TPs inactive pntrefn (oeproji, refnmode, gcpres, tpres, oeprojo, pointopt, mintp)
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.