GPSMan SymbolsUsing GPSManMiscellaneousFiles

Files

GPSMan uses text files to store data. The Load/Save options in the menus deal with files in GPSMan format. The Import/Export options deal with files in foreign formats. In the GPStrans format (described in the documentation of GPStrans), all positions are exported in DDD format, although any available position format is accepted in imported files.

Files in GPSMan format can be either item information files (with data of different types: waypoints, routes, tracks and/or groups), or image information files (for saving information on background images for the map).

These file formats are independent of the language used. That is, there will not be commands in Tobagonian even if a lang*.tcl file was provided for it and GPSMan was set to use that language.

Item information files

Item information files in GPSMan format (based on the GPStrans format) are as follows:

Image information files

These are files containing the following information:

  1. a !Image: P command, with P the absolute path of the file containing the image in GIF or PNM format;
  2. a !Datum: D command, with D the datum name for the coordinates;
  3. a !Projection: NP As command, with NP the name of the projection to use and As a sequence of attribute-value pairs under the form Atr=Val describing projection parameters; the tabulation is used as separator for NP and each pair;
  4. a !Transf: NT As command, with NT the name of the coordinate transformation to use and As a sequence of attribute-value pairs as in the previous command;
  5. a !Scale: S command, where S is the floating-point value of the map scale in pixel/metre.

After this there may be one or more lines with a !Image at: XG,YG P command, where P is the absolute path of the file containing the image in GIF or PNM format, and XG,YG are the grid coordinates of the image. The grid coordinates of the first-loaded image are 0,0. GX changes by 1 (-1) for each image to the right (left), and GY changes by 1 (-1) for each image down (up).

No newlines are allowed within these commands, and arguments are separated by spaces or tabulation characters unless otherwise stated. Paths must use the slash (/) as separator.

Map information files

These are files currently used only for saving the state of the map when there is no background image. They follow the same conventions as the image information files and contain the following commands:

  1. a !Map: command;
  2. a !Datum: D command, with D the datum name for the coordinates;
  3. a !Projection: NP As command, with NP the name of the projection to use and As a sequence of attribute-value pairs under the form Atr=Val describing projection parameters; the tabulation is used as separator for NP and each pair;
  4. a !Transf: NT As command, with NT the name of the coordinate transformation to use and As a sequence of attribute-value pairs as in the previous command;
  5. !Position: P, where P is the position format (one of DMS, DMM, DDD, UTM/UPS or a coordinates grid name).
  6. a !Scale: S command, where S is the floating-point value of the map scale in pixel/metre.

GPSMan User Manual
©Miguel Filgueiras, mig_at_ncc.up.pt, DCC-FC & LIACC, Universidade do Porto, 2002

GPSMan SymbolsUsing GPSManMiscellaneousFiles