Image Files (*.img)

Image files are used in conjunction with TIFF or JPEG files which have been previously imported to SMS and registered.  They include the name of the TIFF/JPEG file, the registration points, and the bounds of the clipping window.

Image files are opened through File | Open and saved from File | Save As... from the Map module.

File Format

IMAGE                /* File type identifier */
TIFF "filename"      /* Indicates the name of the tiff file used */
IMREGPTS
PT1 u1 v1 x1 y1
PT2 u2 v2 x2 y2
PT3 u2 v2 x2 y2
CLIPPOINT
x1 x2
y1 y2

Sample File

IMAGE
TIFF "easttex.tif"
IMREGPTS
PT1 117 797 0.000000 10000.000000
PT2 117 88 0.000000 0.000000
PT3 1053 88 13220.000000 0.000000
CLIPPOINT
-1082.059503 13885.402536
-992.568818 8457.158566

Cards

 

Card Type

IMAGE

Description

File type identifier.  Must be on first line of file.  No fields.

Required

YES

 

Card Type

TIFF

Description

Defines the name of the TIFF file to be displayed as an image.

Required

YES

Format

TIFF "filename"

Sample

TIFF "easttex.tif"

Field

Variable

Value

Description

1

filename

str

The name of the TIFF file. 

 

Card Type

PT1, PT2, PT3

Description

The three registration points used to define locations on a given image.

Required

YES

Format

PT1 tx1 ty1 wx1 wy1
PT2 tx2 ty2 wx2 wy2
PT3 tx3 ty3 wx3 wy3

Sample

PT1 117 797 0.000000 10000.000000
PT2 117 88 0.000000 0.000000
PT3 1053 88 13220.0 0.000000

Field

Variable

Value

Description

1-2
3-4

tx ty
wx wy

±
±

Texture map coordinates.
World coordinates.

 

Card Type

CLIPPOINTS

Description

Defines the coordinates of the area in the TIFF file to be displayed as the image.  (The area clipped and displayed from the TIFF file.

Required

YES

Format

CLIPPOINTS
xmin xmax
ymin ymax

Sample

CLIPPOINTS
-628.990382 14338.471657
-857.665608 8354.617436

Field

Variable

Value

Description

1-2
3-4

xmin xmax
ymin ymax

±
±

Min and max values in the x direction.
Min and max values in the y direction.