Visualization of point connectivity in 2D space.
Generates a kml character array used for visualizing the connectivity between points in a plane parallel to the Earth's surface. Input variable "A" contains the connectivity matrix between points. If there are N points, "A" should thus be NxN. Variable "V" contains the Cartesian coordinates of all points (the so-called vertices). "V" must be Nx2, with N equal to the number of points.
In addition to the above, a number of options can be set regarding the appearance of the gplot. 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 and longitudes on the Western hemisphere must be passed as negative values.
Some transformation may occur due to the projection.
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.
See the demo file demo_ge_gplot for more details.
angleRad = linspace(0,(4/5)*2*pi,5)';
X = sin(angleRad);
Y = cos(angleRad);
V = [X,Y];
A = [0,0,1,1,0;...
0,0,0,1,1;...
1,0,0,0,1;...
1,1,0,0,0;...
0,1,1,0,0];
kmlStr = ge_gplot(A,V,'lineWidth',5.0,...
'lineColor','FF00FF00');
ge_output('example_ge_gplot.kml',kmlStr);
The above lines of code will display as follows when viewed in Google Earth:
