This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ivac2:firdef_points_xml [2014/04/15 17:15] filip.jonckers |
ivac2:firdef_points_xml [2017/04/08 14:27] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | [[ivac2:firdef_toc|Back]] | ||
- | |||
====== 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 (sid, star, loa 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 (SID, STAR, LOA information, etc...) |
- | (See also [[ivac2:firdef_map_ref|Point references]] | + | |
+ | The ''points.xml'' file is located in the ''fir/'' directory. | ||
+ | |||
+ | ^Element|point|| | ||
+ | ^Attribute^Format^Remarks^ | ||
+ | |id|string|Identification of the predefined point| | ||
+ | |lat|string|latitude value| | ||
+ | |lon|string|longitude value| | ||
+ | |||
+ | |||
+ | or | ||
+ | |||
+ | |||
+ | ^Element|point|| | ||
+ | ^Attribute^Format^Remarks^ | ||
+ | |id|string|Identification of the predefined point| | ||
+ | |x|float|cartesian X value in nautical mile| | ||
+ | |y|float|cartesian Y value in nautical mile| | ||
+ | |||
Line 14: | 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 22: | Line 39: | ||
The following is also valid: | The following is also valid: | ||
lon="W0033535" → W003:35:35.000 | lon="W0033535" → W003:35:35.000 | ||
+ | |||
+ | |||
==== 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 ... | ||
+ | |||
+ | <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> | ||
+ | |||
+ | ---- | ||
+ | [[ivac2:firdef|Back]] | ||
- | <HTML> | ||
- | <p style="border:1px dashed #C11B17;color:#C11B17;"> | ||
- | Use predefined point elements in **points.xml** for often used coordinates in map drawing to make your map files more readable. | ||
- | </p> | ||
- | </HTML> | ||