Structure of the script parameters file

Print Previous page Top page Next page

The script parameters are written to an XML file with the «.process» extension. The script parameter file name matches the classifier file name. An example of a simple viet50t.topogen.process file:

 

<?xml version="1.0" encoding="UTF-8"?>

<process rscname="viet50t.rsc">

<priority ref="viet50t.priority"></priority>

<makemath name="Map grid creation" nameru="Создание математической основы">

 <set></set>

</makemath>

<bordercutting name="Cutting Borders" nameru="Разрезание границ">

<set name="Cutting Borders" nameru="Разрезание границ " crossdistance="0.4" distance="0.3" radius="0.2">

  <analyzed>

   <key>P0000000770,DiemDoCao</key>

  </analyzed>

  <processed>

   <key>L0000000794,L0000000795, L0000000797,L0000000798</key>

  </processed>

</set>

</bordercutting>

</process>

 

Description of fields:

 

<?xml version="1.0" encoding="UTF-8"?>

Heading record of XML file with indicating the version "1.0" and file's encoding "UTF-8"

<process rscname="viet50t.rsc">

Initial tag of parametres file <process>.

The name of the classifier file "viet50t.rsc", according to which the processing parameters are customized (keys and codes of objects, numbers of semantics)

<priority ref="viet50t.priority"></priority>

The name of the file with lists of priority objects (deleted when they intersect, obtained as a result of generalization of the map)

<alignment>…</alignment>

<makemath>…</makemath>

<bordercutting>…</bordercutting>

Parameters of procedures of processing a map by script:

makemath - Creating a mathematical basis;

bordercutting - Cutting borders;

</process>

Final tag of a parametres file </process>

 

 

Lists of priority objects (see Processing objects by priority) are written into an XML file with the «.priority» extension. The script parameters file name matches the classifier file name. An example of a simple viet50t.priority file:

 

<?xml version="1.0" encoding="UTF-8"?>

<priority rscname="viet50t.rsc">

<order id="3" name="Point mark order" nameru="Порядок точечных знаков">

  <level name="Group 1" nameru="Группа 1">

    …

  </level>

  …

  <level name="Group 4" nameru="Группа 4">

    <key value="TramThuPhatSong"></key>

    <key value="P41140">

       <attributes>

           <semantic>642,equal,"Hầm mỏ"</semantic>

           <semantic>548,equal,"Đang sử dụng"</semantic>

       </attributes>

    </key>

    …

  </level>

  …

</order>

</priority>