You are here: Appendix F: Command Line Applications and Switches > mrsidgeoinfo

mrsidgeoinfo

The mrsidgeoinfo tool displays basic information about an image, such as width, height, file format, and more. Various image formats are supported. For compressed images, GeoExpress also displays the compression ratio of the image and the nominal size.

For MrSID images, the mrsidgeoinfo tool also displays the generation of the MrSID format used during compression. For example, the tool displays that the image is stored in the MrSID Generation 4 (MG4) format.

By default the mrsidgeoinfo tool is installed in the following directory:

C:\Program Files\LizardTech\GeoExpress\bin

File Control Switches

Switch Value Notes

-inputformat / -if

string

Identifies the input file format. Accepted values are:

  • tif: TIFF 6.0

  • bil: Band interleaved by line (a BBB format)

  • bip: Band interleaved by pixel (a BBB format)

  • bsq: Band sequential (a BBB format)

  • doq: Digital Orthophoto Quadrangle (DOQ)

  • doq_nc: DOQ (no clipping)

  • ras: Sun Raster

  • lan: ERDAS LAN

  • sid: MrSID

  • jpg: “old-style” JPEG (not JPEG 2000)

  • jp2: JPEG 2000

  • bmp: Windows bitmap (BMP)

  • nitf: National Imagery Transmission Format 2.0/2.1 (NITF)

  • img: ERDAS Imagine

-mosaic / -mos

  Identifies the input file as an AUX file of mosaic images. Using the ‑mosaic switch creates a flat output file.

Main Switches

Switch Value Notes
-metadata / -meta   Show metadata tags and values.
-tiles / -tile   Show tile information (composite MG3 only).
-genProfile / -prof string Generate JP2 profile.
-worldFile / -wf   Generate world file.
-ignoreWorldFile / -ignorewf   Ignore georeferencing from world files.
-tfwOverride / -tifw   Use .tfw file (for TIFF images only).
-projectDims / -dims   Show image dimensions at various resolution levels.
-wkt   Display any well-known text string (WKT) information for the image.
-aoi   Display any Area of Interest (AOI) information for the image.
-inputFile / -input string Name of input file (required).
-stats   Display image statistics for each image band. The image statistics include the minimum value, the maximum value, the mean value, and the standard deviation.

Other Switches

Switch Value Notes
-h / -?   Show short usage message.
-help   Show detailed usage message.
-version / -v   Show version information.
-quiet   Don’t show informational message.
-log string Write output to log file.
-progress string Progress meter style. Acceptable values: none, default, timer

This command displays the basic image information for a MrSID image named image.sid:

mrsidgeoinfo image.sid

This command displays the basic image information and the metadata for a TIFF image named foo.tif:

mrsidgeoinfo -meta foo.tif

This command displays metadata information for an AUX file containing JPEG format images named mosaic.txt:

mrsidgeoinfo -mos -if jpg mosaic.txt

Modifications

When the target of a mrsidgeoinfo command is a .sid file, one element of returned information is the modifications performed on current and past iterations of the image, listed along with MrSID image info.

For example, if you first reproject an image, then crop the results of that operation, then apply a watermark, the final resulting image will indicate CROPPED REPROJECTED WATERMARKED.

Modifications that can be listed include:

The modifications are listed in the results alphabetically, not historically; the listing does not give an indication of the order in which the modifications were performed.