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_map_ref [2015/02/17 15:41]
filip.jonckers
ivac2:firdef_map_ref [2017/04/08 14:27] (current)
Line 1: Line 1:
 [[ivac2:​firdef_toc|Back]] [[ivac2:​firdef_toc|Back]]
- 
-====== Point References ====== 
- 
-The **point.xml** file contains pre-defined points which can be referenced by their **id** in **<​point>​** elements. ​ This makes maintenance of coordinates much simpler and significantly improves the readability of your map files. ​ Especially when visualizing airways, SID, STAR or any other procedures. 
- 
- 
- 
-A point element needs to be defined in the **points.xml** file: 
- 
-<code XML> 
-<​points>​ 
-    <point id="​COA" ​  ​lat="​N0512053002"​ lon="​E0032119001"/>​ 
-</​points>​ 
-</​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 ... 
- 
-<code XML> 
-<circle radius="​10"​ segments="​64"​ r="​255"​ g="​0"​ b="​0">​ 
-      <point lat="​N0512053002"​ lon="​E0032119001"/>​ 
-</​circle>​ 
-</​code>​ 
- 
-could be replaced by: 
- 
-<code XML> 
-<circle radius="​10"​ segments="​64"​ r="​255"​ g="​0"​ b="​0">​ 
-      <point ref="​COA"/>​ 
-</​circle>​ 
-</​code>​