Visualization of lines parallel to the Earth's surface.
When the above syntax is used, ge_plot() will return the character array "kmlStr" containing XML-based kml tags. This character array contains the coordinates specified in X and Y that were passed to ge_plot(). If the resultant character array is used as part of a *.kml file (see function ge_output()), it can be opened in the Google Earth Viewer, where it will be displayed as a line connecting the points from the input arrays X and Y (respectively representing Longitude and Latitude in units of decimal degrees). By default the line is drawn as a 100% opaque, white line of width 1, but the appearance of the line can be set by including parameter/value pairs (see below).
A number of options can be set regarding the appearance of the line. Assigning values to the parameters can be accomplished by inclusion of an alternating sequence of parameters and their value. The table below provides an overview of the authorized options. The order in which the parameters are included does not matter. Please be aware that the options are case-sensitive. Examples are provided further down.
Latitudes on the Southern hemisphere should be passed to ge_plot() as negative values. Same for longitudes on the Western hemisphere.
Latitudes and longitudes should be passed in units of decimal degrees (also known as fractional degrees). Google Earth uses Simple Cylindrical projection (also known as Plate Carée) with a WGS84 datum. Altitudes are in meters.
A line can consist of multiple sections; these will all be assigned identical properties such as line width and color. When different lines should be assigned different line styles, use multiple calls to ge_plot() with different line style parameters. Disconnected lines with identical linestyles can be generated using coordinate vectors separated by NaNs.
See the demo file demo_ge_plot for more details.
The above will generate a *.kml file that looks like the image below when opened in the Google Earth viewer.
