Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ivac2:firdef_points_xml [2015/07/21 23:25]
splendor.bouman
ivac2:firdef_points_xml [2017/04/08 14:27] (current)
Line 1: Line 1:
 ====== points.xml ====== ====== points.xml ======
  
-The points.xml file is used define fixed point elements which can be used in maps instead of <​point>​ elements based on latitude/​longitude or cartesian x,y coordinates. ​ These are especially useful when drawing airways or specific procedures based on waypoints (sidstarloa information,​ etc...+The points.xml file is used define fixed point elements which can be used in maps instead of <​point>​ elements based on latitude/​longitude or cartesian x,y coordinates. ​ These are especially useful when drawing airways or specific procedures based on waypoints (SIDSTARLOA information,​ etc...)
- +
-(See also [[ivac2:​firdef_map_ref|Point references]])+
  
 The ''​points.xml''​ file is located in the ''​fir/''​ directory. The ''​points.xml''​ file is located in the ''​fir/''​ directory.
Line 33: Line 31:
   * sssss = seconds with maximum 3 decimal places (max 59.999)   * sssss = seconds with maximum 3 decimal places (max 59.999)
  
-==== latitude ​longitude example ====+** Latitude ​Longitude **
  
   * lat="​N0543000000"​ → N054:​30:​00.000   * lat="​N0543000000"​ → N054:​30:​00.000
Line 47: Line 45:
  
 ==== Example ==== ==== Example ====
 +
 +A point element needs to be defined in the **points.xml** file:
  
 <code XML> <code XML>
 <​points>​ <​points>​
-    <point id="REMBA" lat="N0503944000" lon="E0045451000"/>+    <point id="COA" ​  ​lat="N0512053002" lon="E0032119001"/>
 </​points>​ </​points>​
 </​code>​ </​code>​
  
 +You can then reference that point in any map, replacing latitude/​longitude or cartesian x/y pairs.
  
 +<code XML>
 +<symbol id="​vor_symbol"​ text="​COA"​ color="​symbol_vor_color"​ lat="​N0512053002"​ lon="​E0032119001"/>​
 +</​code>​
  
 +could be replaced by:
  
 +<code XML>
 +<symbol id="​vor_symbol"​ text="​COA"​ color="​symbol_vor_color"​ ref="​COA"​ />
 +</​code>​
  
 +Another example ...
  
 +If you would like to draw a circle around a known VOR beacon ...
  
-<HTML+<code XML
-<p style="border:1px dashed #​C11B17;​color:#​C11B17;​">​ +<circle radius="10" segments="​64"​ r="​255"​ g="​0"​ b="0">​ 
-Use predefined ​point elements in **points.xml** for often used coordinates in map drawing to make your map files more readable. +      <point lat="​N0512053002"​ lon="​E0032119001"/>​ 
-</p+</circle
-</HTML>+</code>
  
 +could be replaced by:
 +
 +<code XML>
 +<circle radius="​10"​ segments="​64"​ r="​255"​ g="​0"​ b="​0">​
 +      <point ref="​COA"/>​
 +</​circle>​
 +</​code>​
  
 ---- ----