Menu

Attribute Values

Agnar Renolen

Attribute Values

Paper Units

Some of the element attributes in the file can be specified in paper units. The unit should be written immediately after the nominal value ("10mm") or a space between ("10 mm").

The following units are supported:

  • pt - points (default)
  • mm - millimeter
  • cm - centimeter
  • in - inch

If no unit is provided, points (pt) is assumed.

Map Units

Some of the element attributes may be specifies in map units or in latitude/longitude units:

For coordinate values, the following units are supported:

  • m - meter (default)
  • km - kilometer
  • ft - feet
  • mi - miles
  • nm - nautical miles

For longitude and latitude values, the following units are supported:

  • deg - degrees
  • min - minutes
  • sec - seconds (default)

Fractions

Some elements are specified as fractions of a containing dimension. These values can be either specified as percent as in "50%", as a floating number as in "0.5", or as a fraction as in "1/2".

Color

Some elements requires you to specify a color. This can be specified by their name, by their RGB components or the CMYK components. If your intent is to produce a frame for print, use CMYK-specifiers, otherwise, use RGB or named colors.

Colors can be specified in the following ways:

  • color name - Simply specify the name of the color. The color names
    recognized are the same colors that are defined in the colors class
    of the rebortlab.lib module.

  • cmyk(<cyan>,<magenta>,<yellow>,<black>)</black></yellow></magenta></cyan> - Specifies in percent, the
    components of he color. For example the following value specifies the
    /brown/ color: cmyk(0,56,100,20)

  • rgb(<red>,<green>,<blue>)</blue></green></red> - Specifies in range 0 to 255 the amount of
    red green and blue. The following value specifies yellow:
    rgb(255,255,0).

  • #<red><green><blue></blue></green></red> - Specifies the color using Web specification.
    rgb(255,255,0) equals #FFFF00.

Fonts

Currently, mapframer only supports the following fonts.

HelveticaTimes-RomanCourier
Helvetica-BoldTimes-BoldCourier-Bold
Helvetica-ObliqueTimes-ItalicCourier-Oblique
Helvetica-BoldObliqueTimes-BoldItalicCourier-BoldOblique

Related

Wiki: XML-specification

MongoDB Logo MongoDB