Defining Vector Layers Referencing Vector Files

You can create a vector layer that references one or more vector (.vec) files, which contains the data that defines the vectors to be drawn on the globe.

To define a vector layer that references one or more .vecfiles, you must have the following:

  • One or more .vecfiles that contain the data used to draw the vectors on the globe.


    To obtain .vec files to use with your vector layers, contact Adobe.

  • A layer file that specifies the location of the .vec files. For more information about the required format of the layer file, see Vector Layer File Format.


    The Boundaries.layer file, provided with the Geography profile, is a vector layer that references the mwnation.vec, mwstate.vec, mwcoast.vec, mwlake.vec, and mwisland.vec files.

Vector Layer File Format

Each vector layer file referencing .vecfiles must be formatted using the following template:

Layer = VectorLayer:
  Vec Files = vector: n items
    0 = string: Maps\\.vec file 1
    1 = string: Maps\\.vec file 2
    . . .
    n-1 = string: Maps\\.vec file n
  Color = v3d: color vector
  Alpha = double: alpha
  Width = double: width
  Error Factor = double: error factor
Parameter Description
Vec Files Path(s) to the .vec file(s) containing the vector data.
Color The RGB color vector, which is expressed as (red,green,blue). For each color in the vector, you can enter a value from 0.0 to 1.0. For example, (1.0, 0.0, 0.0) is bright red, and (0.5, 0.5, 0.5) is gray.
Alpha Controls the transparency of the vectors shown on the globe. The range is 0 to 1, with 0 being the most transparent.
Width Optional. Sets the width of the data in pixels. The recommended range is 1 to 4.
Error Factor Controls how accurately the vectors are drawn. For larger values, the vectors are drawn less accurately but faster. The default value is 5.

The Boundaries.layer file is formatted as follows:

 Boundaries.layer file is formatted as follows:
Layer = VectorLayer:
  Vec Files = vector: 5 items
    0 = string: Maps\\mwnation.vec
    1 = string: Maps\\mwstate.vec
    2 = string: Maps\\mwcoast.vec
    3 = string: Maps\\mwlake.vec
    4 = string: Maps\\mwisland.vec
  Color = v3d: (.5,.5,1)
  Alpha = double: .5
  Error Factor = double: 4

On this page