This shows you the differences between two versions of the page.
ivac2:firdef_points_xml [2015/07/22 00:02] splendor.bouman [latitude / longitude example] |
ivac2:firdef_points_xml [2017/04/08 14:27] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== 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 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| | ||
- | |||
- | |||
- | |||
- | |||
- | If cartesian X/Y attribute values are used, the point is calculated using the <origin> given in the FIR configuration file (config.fir). | ||
- | The format of the latitude/longitude values is Zdddmmsssss where: | ||
- | * Z = N or S for latitude, E or W for longitude | ||
- | * ddd = degrees (3 digits, zero padded) | ||
- | * mm = minutes (max 59) | ||
- | * sssss = seconds with maximum 3 decimal places (max 59.999) | ||
- | |||
- | ==== latitude / longitude ==== | ||
- | |||
- | * lat="N0543000000" โ N054:30:00.000 | ||
- | * lon="W0033535000" โ W003:35:35.000 | ||
- | |||
- | |||
- | The following is also valid: | ||
- | lon="W0033535" โ W003:35:35.000 | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ==== Example ==== | ||
- | |||
- | 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> | ||
- | |||
- | ---- | ||
- | |||
- | [[ivac2:firdef|Back]] | ||
- | |||