Customizing dictionaries

Print Previous page Top page Next page

A dictionary (file of import options) is a text file with the extension TXT, as a rule, having the name of the corresponding classifier and the postfix _osm. For example, for the map5000m.rsc classifier, the options file will be map5000m.rsc_osm.txt.

In the text, blank lines are allowed, as well as lines beginning with “//“ characters (such lines will not be processed).

Columns are separated by the character “|“.

The lines in the file have the following format:

 

Tag | Value | Type | Key | Name | Priority

 

Tag - the name of the object-forming tag in the OSM-input data.

Value - a variant of the tag value.

Type - character of the object localization (type) (0-linear, 1-polygon, 2-point).

Key - an object key in the classifier.

Name - the name of the object.

Priority - a priority of assigning a code

 

Tag

 

The description of the structure of the OSM format contains about 74 thousand tags. In fact, about 5 thousand are used in the data description. But not all of them are the object-forming tags (they participate in the determination of the final code of the classifier object).

The main tags for determining the object code are:

 

-  aeroway;

-  aerialway;

-  amenity;

-  barrier;

-  boundary;

-  bridge;

-  building;

-  construction;

-  highway;

-  historic;

-  landuse;

-  leisure;

-  man_made;

-  military;

-  natural;

-  place;

-  power;

-  railway;

-  residential;

-  service;

-  shop;

-  sport;

-  tourism;

-  waterway.

 

Value

 

There is no fixed list of admissible values of tags in the input data. However, there are the values used most often.

Tags and their values that are not described in the options file are not involved in processing.

In the options file, the most common ones can be described as tag values.

As value of a tag in the second column of a line there can be a reserved word $other$ (value «by default»). The object key described in this line will be assigned to all objects of the specified localization for the values of the specified tag not described in the file. For example, the "building" tag for polygon objects can be described as follows:

 

building|apartments|1|013-001-S|Apartment block|1

building|$other$|1|013-001-S|Buildings|1

 

In this case, two types of buildings will be created on the map: Apartment block (for the value of apartments) and Buildings - for all other values.