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_arc [2014/04/13 12:45]
filip.jonckers
ivac2:firdef_map_arc [2017/06/12 21:17] (current)
ian.beswick [Example]
Line 1: Line 1:
-[[ivac2:​firdef_toc|Back]] 
- 
 ====== arc element ====== ====== arc element ======
  
 +^Root Element|map||
 ^Element|arc|| ^Element|arc||
 ^Attribute^Format^Remarks^ ^Attribute^Format^Remarks^
 |radius|float|radius of the arc in nautical miles| |radius|float|radius of the arc in nautical miles|
-|segments|integer|number of segments to draw|+|start|float|start angle (method 1)| 
 +|end|float|end angle (method 1)|
 |clockwise|boolean|Draw arc clockwise if “true” ​ (default: true)| |clockwise|boolean|Draw arc clockwise if “true” ​ (default: true)|
-|stipple|integer|stipple ​line bitwise ​pattern ​definition+|stroke_pattern|double array|line pattern ​described in an array of doubles
-|width|float|line width in pixels| +|stroke_width|float|line width in pixels| 
-|color|string|color id name| +|stroke_color|string|color id name| 
-|r|byte|color ​RGB value  (0-255)| +|fill_color|string|color ​id name|
-|g|byte|color RGB value  (0-255)| +
-|b|byte|color RGB value  (0-255)|+
  
-AIS publications such as AIP's use arc'​s ​to define lateral airspace borders. +Use this element ​to draw an element ​with the shape of an arcThere are two methods available for building arcs :
-This element ​is especially designed to allow you to define exactly ​the same airspace in a map.+
  
-draw an arc with center position ​<point1> and given radius from <​point2>​ to <​point3>​ in a clockwise direction using the amount of segments given.+<del>Method 1 : Using center ​and start/end
  
-Three <​point> ​elements are required.+Requires one <​point> ​element to be the center of the arc. 
 +Requires start and end attributes to be set to the desired start and end angles of the arc (in degrees, range 0-360)</​del>​
  
 +//Method 1 has a known error, please do not use it until further notice.//
 +===== Example =====
  
 +<del>
 +<code XML>
 +  <arc radius="​10"​ start="​90"​ end="​270"​ clockwise="​false"​ stroke_color="​black"​ width="​2">​
 +      <point lat="​N0505405"​ lon="​E0042904"/>​
 +  </​arc>​
 +</​code>​
 +</​del>​
  
-===== example ​=====+Method 2 : Using 3 points 
 + 
 +Requires three <​point>​ elements. 
 +Builds an arc that centers on the first point and passes by the specified two other points. 
 + 
 +AIS publications such as AIP's use three-point arcs to define lateral airspace borders. 
 +This method is especially designed to allow you to define exactly the same airspace in a map. 
 + 
 +===== Example ​=====
  
 ''//​Brussels CTR: ''//​Brussels CTR:
Line 31: Line 45:
  
 <code XML> <code XML>
-  <arc radius="​10" ​segments="45" ​clockwise="true">+  <arc radius="​10" ​clockwise="true" ​stroke_color="ctr">
       <point lat="​N0505405"​ lon="​E0042904"/>​       <point lat="​N0505405"​ lon="​E0042904"/>​
       <point lat="​N0505203"​ lon="​E0044435"/>​       <point lat="​N0505203"​ lon="​E0044435"/>​
Line 38: Line 52:
 </​code>​ </​code>​
  
 +
 +----
 +
 +[[ivac2:​firdef|Back]]