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_line [2011/12/22 21:57]
filip.jonckers
ivac2:firdef_map_line [2017/04/08 14:27] (current)
Line 3: Line 3:
 ====== line element ====== ====== line element ======
  
-Use a line element to draw a single point on the map.+Use a line element to draw a single point on the map.  You might remember this one as the only way to draw objects in IVAC v1 sectorfiles.
  
 ^Element|line|| ^Element|line||
 ^Attribute^Format^Remarks^ ^Attribute^Format^Remarks^
-|stipple|integer|stipple ​line bitwise ​pattern ​definition|+|pattern|double array|line pattern ​described in an array of doubles|
 |width|float|line width in pixels| |width|float|line width in pixels|
 |color|string|color id name| |color|string|color id name|
Line 20: Line 20:
  
  
-===== Example =====+The drawing can be written as:
  
-  ​<line stipple="​16135"​+<code XML
-      <point lon="E0042957" ​lat="​N0511059"/​+  <line color="myPredefinedColor">​ 
-      <​point ​lon="​E0044324"​ lat="​N0510755"/>​ +      <​point ​x="v0 x" ​y="v0 y" /> 
-  +      <​point ​x="v1 x" ​y="v1 y" /> 
-      <point lon="​E0043127"​ lat="​N0511038"/>​ + 
-      <point lon="​E0043140"​ lat="​N0511101"/>​ +      <​point ​x="v2 x" ​y="v2 y" /> 
-  +      <​point ​x="v3 x" ​y="v3 y" />
-      <point lon="​E0043427"​ lat="​N0510957"/>​ +
-      <point lon="​E0043440"​ lat="​N0511020"/>​ +
-  +
-      <point lon="E0043726" ​lat="N0510917"/>​ +
-      <​point ​lon="E0043739" ​lat="N0510940"/>​ +
-  +
-      <​point ​lon="E0044324" ​lat="N0510755"/>​ +
-      <​point ​lon="E0044338" ​lat="N0510818"/>+
   </​line>​   </​line>​
 +</​code>​
  
 +
 +
 +
 +===== Example =====
 +
 +The following code draws a rectangle:
 +
 +<code XML>
 +  <line color="​myPredefinedColor">​
 +      <point lat="​N0504413"​ lon="​E0043108"/>​
 +      <point lat="​N0504421"​ lon="​E0042601"/>​
 +
 +      <point lat="​N0504421"​ lon="​E0042601"/>​
 +      <point lat="​N0504528"​ lon="​E0042119"/>​
 +
 +      <point lat="​N0504528"​ lon="​E0042119"/>​
 +      <point lat="​N0504730"​ lon="​E0041718"/>​
 +
 +      <point lat="​N0504730"​ lon="​E0041718"/>​
 +      <point lat="​N0504413"​ lon="​E0043108"/>​
 +  </​line>​
 +</​code>​