| Environments | PYTHON :: EASI :: MODELER |
| Quick links | Description :: Parameters :: Parameter descriptions :: Return Value :: Details :: Example |
| Back to top |
| Back to top |
crproj(mfile, dbgc, oeproj, modeltyp, mapunits)
| Name | Type | Caption | Length | Value range |
|---|---|---|---|---|
| MFILE * | str | Input file name, folder, or text file | 1 - | |
| DBGC | List[int] | Input ground control points segment | 0 - 1 | -1 - 4096 |
| OEPROJ * | str | Output OrthoEngine project file name | 1 - | |
| MODELTYP * | str | Math model type | 2 - 4 | |
| MAPUNITS | str | Projection map units | 0 - |
| Back to top |
MFILE
Specifies the name of a folder, image file, or text file that contains the input images to be processed. Wildcards (*) can be used.
DBGC
Specifies the input GCP segment to add to the new OrthoEngine project along with the image layers.
If a folder is specified for MFILE, this segment number is applied to all images. If a text file is specified for MFILE, DBGC is read from the text file and this parameter can be left empty.
If this parameter is defined, but there exist no segment in an image an error message will be displayed.
If this parameter is set to empty, no GCPs will be imported.
If this parameter is set to -1 and not defined in the text file, then the last GCP segment, if exists, in a file will be imported.
OEPROJ
Specifies the file name for the new OrthoEngine project. The project file will have a .prj file name extension.
MODELTYP
Specifies the math modeling type for the OrthoEngine project.
MAPUNITS
Specifies the projection string for the output model parameters and image products, such as ortho images.
If this parameter is not specified, the projection of the first image added to the project will be used.
For more information, see TIFF (TIF).
| Back to top |
Returns: execution status
Type: PCI_INT
| Back to top |
CRPROJ creates an OrthoEngine ASCII project file from a list of input images, and optional GCP segments and auxiliary information. You can then use the project file as input for tasks, such as AUTOTIE, and math-modeling tasks, such as SATMODEL, for a block bundle adjustment of a group of images. By creating a project file, you can also open the project in OrthoEngine to manually edit GCPs and TPs.
The input images that have GCPs and one or more GCPs are imported, then those images' status is set to stale. That means that the math model needs to recomputed before orthos can be created.
You can combine CRPROJ with algorithms, such as CPMMSEG (to copy math-model segments based on the model in a project file), MERGPROJ (to combine multiple projects in a single project), and SUBPROJ (to divide a project file into smaller project files).
| Back to top |
Create an OrthoEngine project file using Toutin's satellite orbital model.
from pci.crproj import crproj
mfile = "spotleft.pix" # input file name
dbgc = [] # input GCP segment
oeproj = "spotleft.prj" # output OrthoEngine project file
modeltyp = "SAT" # use Toutin's satellite orbital model
mapunits = "UTM 11 D000" # output map unit.
crproj (mfile, dbgc, oeproj, modeltyp, mapunits)
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.