GeoExpress supports applying profiles to JPEG 2000 encode jobs via the ‑profile
and ‑profilefile
switches. The ‑profile
switch allows you to specify one of the installed industry profiles with the following names:
NPJE: “NITF Preferred JPEG 2000 Encoding” settings. This profile is optimal for panning and zooming within an image at high-resolution.
EPJE: “Exploitation Preferred JPEG 2000 Encoding” settings. This profile is optimal for low-resolution browsing among images.
Large: Uses optimal settings for creating large JPEG 2000 images
Default: General purpose JP2 encode settings. These are NOT the same as the GeoExpress default encode settings, which are recommended for large images. See Default JP2 settings.
The files for these profiles are called lti_npje.xml
, lti_epje.xml
and lti_default.xml
. They are located by default in C:\Program Files\LizardTech\GeoExpress\etc\profiles
.
The ‑profilefile
switch allows you to specify the file name of a custom profile file, such as those that can be created in the GUI version of GeoExpress. Custom profiles cannot be created or saved from the command line version of GeoExpress. The following command line provides an example:
mrsidgeoencoder -i foo.tif -o foo.jp2 -of jp2 -profilefile c:\program_files\lizardtech\geoexpress\etc\profiles\my_custom_profile.xml
Any encode options that are explicitly set on the command line will override any corresponding settings in any profile you have applied using the ‑profile
or ‑profilefile
switches. The following command line provides an example:
mrsidgeoencoder -i foo.tif -o foo.jp2 -of jp2 -profile NPJE -tilesize 512 512
This applies the NPJE profile to the job and then resets the tile size to the new value of 512 × 512.
The NPJE and EPJE standardization process is not yet complete. These profiles use settings that are compliant with the NPJE and EPJE standards as the NGA currently defines them; however, if the specifications for the standards change, files encoded using the current NPJE and EPJE profiles may not be compliant with the finalized standards. As the standards evolve, Extensis will make available updated profiles (XML files) to reflect any changes to the standards.
While the floating point 9-7 wavelet is visually lossless and sometimes yields better image quality than the 5-3 wavelet, it is NOT numerically lossless. By default, GeoExpress uses the 9-7 wavelet in the NPJE and EPJE profiles, except when lossless encoding is specified. In that case, GeoExpress uses the lossless 5-3 wavelet that it uses in other JPEG 2000 encoding.