FORMAT FOR MAP FILES 02/06/92 - Original by J Caron & F Hage. November 2003, Minor updates F. Hage. Maps are stored in ASCII files; this document describes their format. These are the types of lines within the file: 1) comment lines, which have the character "#" in column 1 2) keyword lines, beginning with a keyword 3) scalable text lines, which have the character "&" in column 1 1. Keyword lines: 1.1. MAP_NAME This should be the first line of any map file. The name is restricted to 64 characters, and must not have whitespace in it. The description is restricted to 64 chars. A list of available map names (and desc) may be passed to client programs; typically it is displayed for the user to select from. (Note: By 2003, this TAG is considered optional and is typically ignored by RAP software. Write these fields for human consumption.) 1.2 TRANSFORM OPTIONAL line used by digitizing program. Ignored otherwise. 1.3 PROJECTION OPTIONAL line used by digitizing program. = PJG_XXXX; see PJG.h for description of the projection parameters. Ignored otherwise. 1.4 ICONDEF ... This defines an icon with name . It consists of number of points, which immediately follow. The are in units of pixels, and the value "32767 32767" indicates a pen up. Note this defines an icon, but does not draw it. 1.5 ICON This indicates to draw the icon , with origin at . If is not equal to "32767 32767", then also draw the text , with the lower left corner of the text at pixels relative to the origin. An ICON line can only refer to an that is already defined by a ICONDEF in the same map file. An ICON stays the same size as the user zooms. 1.6 POLYLINE ... This indicates an object called , which is simply a POLYLINE of segments, specified in world (lat, lon) coordinates. Pen-up = (-1000.0, -1000.0). 2. Scalable Text Lines: These are specified in world coordinates, and scale as the user zooms. Note all are space-delineated tokens with the exception of the text itself: LABEL = lower left corner of the bounding rectangle = upper right corner of the bounding rectangle = angle to rotate text in degrees: 0 = regular, 90 = vertical text goes up, 180 = upside down, 270 = vertical text goes down = lat, lon of the "attach point"; -1000, -1000 means none = text to display See the many examples in http://www.rap.ucar.edu/maps.