|  |  | The `georef` Command

## The `georef` Command

The `georef` command, that can have no options, writes to the standard output a GPSMan map information file containing geo-referencing information for an image:

    georef IMGPATH TRANSF LATD LONGD LATD LONGD [LATD LONGD] DATUM \
           X Y X Y [X Y] PROJECTION [PARAMS]

where:

- `IMGPATH` is the path to the image file;
- `TRANSF` is the coordinates transformation to use; the command `show transfs` produces a list of the available transformations;
- the `LATD LONGD` pairs and `DATUM` are the latitude and longitude in signed decimal degrees and the datum of the 2 or 3 control points whose pixel coordinates are the `X Y` pairs in the same order; the origin of the pixel coordinates is the top left corner of the image and the y-coordinates increase downwards;
- `PROJECTION [PARAMS]` defines the projection and its parameters; if no `datum=X` parameter is given the datum of the points is used; the command `show projections` gives a list of the available projections and their parameters.

|  |  | The `georef` Command