OESELIMG

Search through and select images from an OrthoEngine project


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

Back to top

Description


OESELIMG searches through an OrthoEngine project file for images based on criteria you specify. The file names of the images in the search result are selected and written to a text file, which you can use as input with various CATALYST Professional algorithms.
Back to top

Parameters


Name Type Caption Length Value range
OEPROJI * String Input OrthoEngine project file 1 - 192  
TFILE String Output text file name 0 - 192  
LTYP String Listing type 0 - 5 BRIEF, SHORT, FULL
Default: SHORT
IMSTAT Float Output statistics 0 - 48  
WHERE * String Query string to use 1 - 192  
REPORT String Report mode 0 - 192 Quick links

* Required parameter
Back to top

Parameter descriptions

OEPROJI

The file name of the OrthoEngine project through which to search.

TFILE

The name of the output file, known as a TFILE, to which to write the file names of the selected images. A TFILE is in text format ( .txt ). Like an MFILE, data is written to a TFILE such that it can be used with other CATALYST Professional algorithms.

If the search does not find any matching images, the file is still created; however, it will contain only comments or blank lines.

If no value is specified for this parameter, the file names of the selected images are written to the report.

The content and format of a TFILE, with LTYP set to FULL , is as follows (comments and blank lines notwithstanding):

!
! OESELIMG output
! ---------------
!
! All files are from the OrthoEngine project:
!    ottawa.prj
!
! Your search returned the following images based on the query:
!    where = "(band=red & band = blue) or (! look = f)"

1_554_170312_1833_RGBB19L1.pix
1_554_170312_1833_RGBF26L1.pix
1_554_170312_1833_RGBN00L1.pix

! Images processed: 10
! Images accepted: 3
! Images rejected : 7

LTYP

Whether to write brief, short, or full information to the TFILE and report.

You can specify any one of the following:

IMSTAT

Various statistics describing the result of the query.

On completion of processing, the following entries are displayed:

The number of active, inactive, online, and offline images take into account only whether the "active" and "online" filters accepted or rejected the image. The other filters do not play a role in those counts. Thus, the counts may add up to more than to the total number of images processed.

These statistics are written to the output file and report when LTYP is set to FULL.

WHERE

A string is a query using various strings, operators, and expressions. For more information, see Details .

With each image in the OrthoEngine project file, when the query resolves to true , the file name is appended based on the name specified for the TFILE. When the query resolves to false , the file name may, depending on the value of LTYP , be written to the report.

The query string you specify for WHERE is case-sensitive; that is, all characters must be lowercase, except metadata-tag filters. Metadata-tag filters must match the case of the metadata tag.

Sample queries

You can copy each of the following samples directly to your Python code:

REPORT

Specifies where to direct the generated report.

Available options are:

Back to top

Details

OESELIMG selects images from an OrthoEngine project that match a query. Each image that matches the query is written to the output TFILE.

About the filter language

Querying file properties

With a query on file properties, offline images are rejected.

Querying metadata tags

If an image is offline, the metadata tag does not exist, or if the channel does not exist, the image is rejected.

Querying OrthoEngine properties

Querying spatial properties

Each query of a point property compares the number of active points with the value specified in the query. For more information about supported comparision operators, see Comparison operators .
Logical operators

Comparison operators

The comparison operators include the range operators and the equality operators .

Comparison operators apply only to queries that have a compOp attribute, such as the gcps property queries.

Range comparison operators

Equality operators (eqOp):

Special queries

Regular-expression queries (regex)

Some queries described earlier in this topic compare a property of the image with a regular expression. All regular-expression queries are case-sensitive. If the property value does not match the regular expression, the image is rejected.

A regular-expression query is specified by the following syntax: ~"regexstring" . The tilde (~) is the marker that indicates that the subsequent quoted string is a regular expression.

Regular-expression queries use the Perl regular-expressions syntax. Regular-expression queries are case-sensitive.

where="id = ~'.*[aA][bB][cC].*'"

Operator precedence

Typical operator-precedence rules apply; for example, the ampersand (&) operator has higher precedence than the vertical bar (|) operator.
  1. Property queries (such as looks and gcps ) have higher precedence than the exclamation point (!) operator (not operator).
  2. The exclamation point (!) operator (not operator) has higher precedence than the ampersand (&) operator.
  3. The ampersand (&) operator has higher precedence than the vertical bar (|) operator.
  4. Use brackets to affect precedence.

Quotes in queries on strings

Queries using string values must have the comparison string or regular expression enclosed in matching single quotes or double quotes. To escape quotes, use a backslash. Essentially, the query language processes quotes like Python.

Spaces in queries

In queries, spaces are mostly ignored; however, you must enter a space between the and and or operators. In regular expression queries, spaces are not ignored.

Boolean values and synonyms

With queries that accept boolean values, you can use the following boolean synonyms:

The TFILE contains all of the images that match the query. The file names and paths in the TFILE are relative to file name of the TFILE.

Back to top

Example

Select only forward-looking images from an OrthoEngine project file, ads.prj , which contains airborne digital sensor (ADS) data. Each selected image is written to the TFILE images.txt .

EASI>OEPROJI="ads.prj"
EASI>TFILE="images.txt"
EASI>LTYP="full"
EASI>IMSTAT=[]
EASI>WHERE="look=forward"
EASI>r oeselimg
            

The output file is a TFILE, images.txt , which lists only images that match the query specified for WHERE .

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