The following functions provide various routines for adding, removing, and updating LineStrings in Google Earth. More...
Functions | |
int | GE_GetLineStringCount () |
Returns the current number of LineStrings added to the Google Earth map by the GE SDK. | |
BOOL | GE_RefreshLineString (STRING linestring_name) |
Forces an update to the LineString with the given linestring name. | |
BOOL | GE_AddLineString (STRING linestring_name, STRING points) |
Adds a new LineString to Google Earth. | |
BOOL | GE_DeleteLineString (STRING linestring_name) |
Removes the LineString with the given name from the Google Earth map. | |
BOOL | GE_LineStringExists (STRING linestring_name, int *index) |
Determines if a LineString with the given name has been added to Google Earth by the GE SDK. | |
BOOL | GE_LineStringVisible (STRING linestring_name) |
Determines if the LineString with the given name is currently visible in Google Earth. | |
BOOL | GE_ShowLineString (STRING linestring_name) |
Sets the LineString with the given name to visible. | |
BOOL | GE_HideLineString (STRING linestring_name) |
Sets the LineString with the given name to invisible. | |
STRING | GE_GetLineStringName (int index) |
Retrieves the name of the LineString at the given index. | |
BOOL | GE_SetLineStringName (STRING linestring_name, STRING new_name) |
Changes the name of a LineString. | |
STRING | GE_GetLineStringSnippet (STRING linestring_name) |
Retrieves a LineString's snippet. | |
BOOL | GE_SetLineStringSnippet (STRING linestring_name, STRING snippet) |
Changes the snippet of the given LineString. | |
int | GE_GetLineStringSnippetMaxLines (STRING linestring_name) |
Retrieves the given LineString's snippet maxLines attribute value. | |
BOOL | GE_SetLineStringSnippetMaxLines (STRING linestring_name, int max_lines) |
Changes the snippet maxLines attribute value for the given LineString. | |
STRING | GE_GetLineStringKML (STRING linestring_name) |
Retrieves the KML content that makes up the given LineString. | |
STRING | GE_GetLineStringDescription (STRING linestring_name) |
Retrieves the description of the given LineString. | |
BOOL | GE_SetLineStringDescription (STRING linestring_name, STRING description) |
Sets the description of the given LineString. | |
STRING | GE_GetLineStringColor (STRING linestring_name) |
Retrieves the given LineString's current color. | |
BOOL | GE_SetLineStringColor (STRING linestring_name, STRING color) |
Sets the given LineString's color. | |
float | GE_GetLineStringWidth (STRING linestring_name) |
Retrieves the given LineString's width. | |
BOOL | GE_SetLineStringWidth (STRING linestring_name, float width) |
Sets the given LineString's width. | |
STRING | GE_GetLineStringExtrudeColor (STRING linestring_name) |
Retrieves the given LineString's current extrude color. | |
BOOL | GE_SetLineStringExtrudeColor (STRING linestring_name, STRING extrude_color) |
Sets the given LineString's extrude color. | |
BOOL | GE_GetLineStringExtrude (STRING linestring_name) |
Retrieves the given LineString's extrude state. | |
BOOL | GE_SetLineStringExtrude (STRING linestring_name, BOOL extrude) |
Sets the given LineString's extrude state. | |
int | GE_GetLineStringAltMode (STRING linestring_name) |
Retrieves the altitude mode of the given LineString. | |
BOOL | GE_SetLineStringAltMode (STRING linestring_name, int alt_mode) |
Sets the altitude mode of the given LineString. | |
BOOL | GE_GetLineStringTessellate (STRING linestring_name) |
Retrieves the given LineString tessellate state. | |
BOOL | GE_SetLineStringTessellate (STRING linestring_name, BOOL tessellate) |
Sets the given LineString tessellate state. | |
BOOL | GE_SetLineStringParams (STRING linestring_name, BOOL extrude, int alt_mode, BOOL tessellate) |
Sets the given LineString parameters. | |
int | GE_GetLineStringPointCount (STRING linestring_name) |
Retrieves the total count of geographical points for the given LineString. | |
STRING | GE_GetLineStringPoints (STRING linestring_name) |
Retrieves a string of all coordinate points for the given LineString. | |
BOOL | GE_SetLineStringPoints (STRING linestring_name, STRING points) |
Sets the coordinate points for the given LineString. | |
BOOL | GE_AddLineStringPoints (STRING linestring_name, STRING points) |
Adds geographical points specified in the points parameter to the given LineString <coordinates> element. | |
double | GE_GetLineStringDistance (STRING linestring_name) |
Retrieves the distance of the given LineString. |
The following functions provide various routines for adding, removing, and updating LineStrings in Google Earth.
Linestrings are collections of points (longitude, latitude, and altitude) that create a sequence of connected line segments. They can be used to define a path or enclose a boundary. Linestrings are identified in the GE SDK by their unique name.
int GE_GetLineStringCount | ( | ) |
Returns the current number of LineStrings added to the Google Earth map by the GE SDK.
BOOL GE_RefreshLineString | ( | STRING | linestring_name | ) |
Forces an update to the LineString with the given linestring name.
linestring_name | The name of the LineString to update |
BOOL GE_AddLineString | ( | STRING | linestring_name, | |
STRING | points | |||
) |
Adds a new LineString to Google Earth.
linestring_name | The unique name for the LineString | |
points | A group of 2 or more 3-tuple coordinate points (longitude,latitude,altitude) that compose the LineString's <coordinates> node. |
BOOL GE_DeleteLineString | ( | STRING | linestring_name | ) |
Removes the LineString with the given name from the Google Earth map.
linestring_name | The name of the LineString to remove |
BOOL GE_LineStringExists | ( | STRING | linestring_name, | |
int * | index | |||
) |
Determines if a LineString with the given name has been added to Google Earth by the GE SDK.
If the function returns TRUE, then the index parameter will contain a value that represents the index into the GE SDK internal LineString collection.
linestring_name | The name of the LineString | |
index | The index into the internal LineString collection where linestring_name exists if found |
BOOL GE_LineStringVisible | ( | STRING | linestring_name | ) |
Determines if the LineString with the given name is currently visible in Google Earth.
linestring_name | The name of the LineString |
BOOL GE_ShowLineString | ( | STRING | linestring_name | ) |
Sets the LineString with the given name to visible.
linestring_name | The name of the LineString |
BOOL GE_HideLineString | ( | STRING | linestring_name | ) |
Sets the LineString with the given name to invisible.
linestring_name | The name of the LineString |
STRING GE_GetLineStringName | ( | int | index | ) |
Retrieves the name of the LineString at the given index.
index | The index into the internal LineString collection |
BOOL GE_SetLineStringName | ( | STRING | linestring_name, | |
STRING | new_name | |||
) |
Changes the name of a LineString.
linestring_name | The name of an existing LineString to be renamed | |
new_name | The new name to be given to the LineString |
STRING GE_GetLineStringSnippet | ( | STRING | linestring_name | ) |
Retrieves a LineString's snippet.
linestring_name | The name of the LineString |
BOOL GE_SetLineStringSnippet | ( | STRING | linestring_name, | |
STRING | snippet | |||
) |
Changes the snippet of the given LineString.
linestring_name | The name of the LineString | |
snippet | The snippet to be applied to the given LineString |
int GE_GetLineStringSnippetMaxLines | ( | STRING | linestring_name | ) |
Retrieves the given LineString's snippet maxLines attribute value.
linestring_name | The name of the LineString |
BOOL GE_SetLineStringSnippetMaxLines | ( | STRING | linestring_name, | |
int | max_lines | |||
) |
Changes the snippet maxLines attribute value for the given LineString.
linestring_name | The name of the LineString | |
max_lines | The value to be applied to the maxLines attribute |
STRING GE_GetLineStringKML | ( | STRING | linestring_name | ) |
Retrieves the KML content that makes up the given LineString.
linestring_name | The name of the LineString |
STRING GE_GetLineStringDescription | ( | STRING | linestring_name | ) |
Retrieves the description of the given LineString.
linestring_name | The name of the LineString |
BOOL GE_SetLineStringDescription | ( | STRING | linestring_name, | |
STRING | description | |||
) |
Sets the description of the given LineString.
linestring_name | The name of the LineString | |
description | The description to apply to the LineString |
STRING GE_GetLineStringColor | ( | STRING | linestring_name | ) |
Retrieves the given LineString's current color.
linestring_name | The name of the LineString |
BOOL GE_SetLineStringColor | ( | STRING | linestring_name, | |
STRING | color | |||
) |
Sets the given LineString's color.
linestring_name | The name of the LineString | |
color | A string representing the color formatted as aabbggrr, where aa is opacity, bb is blue, gg is green, and rr is red. |
float GE_GetLineStringWidth | ( | STRING | linestring_name | ) |
Retrieves the given LineString's width.
linestring_name | The name of the LineString |
BOOL GE_SetLineStringWidth | ( | STRING | linestring_name, | |
float | width | |||
) |
Sets the given LineString's width.
linestring_name | The name of the LineString | |
width | The width of the LineString in pixels |
STRING GE_GetLineStringExtrudeColor | ( | STRING | linestring_name | ) |
Retrieves the given LineString's current extrude color.
linestring_name | The name of the LineString |
BOOL GE_SetLineStringExtrudeColor | ( | STRING | linestring_name, | |
STRING | extrude_color | |||
) |
Sets the given LineString's extrude color.
linestring_name | The name of the LineString | |
extrude_color | A string representing the LineString's extrude color formatted as aabbggrr, where aa is opacity, bb is blue, gg is green, and rr is red |
BOOL GE_GetLineStringExtrude | ( | STRING | linestring_name | ) |
Retrieves the given LineString's extrude state.
linestring_name | The name of the LineString |
BOOL GE_SetLineStringExtrude | ( | STRING | linestring_name, | |
BOOL | extrude | |||
) |
Sets the given LineString's extrude state.
linestring_name | The name of the LineString | |
extrude | The state to be applied to the given LineString's <extrude> element |
int GE_GetLineStringAltMode | ( | STRING | linestring_name | ) |
Retrieves the altitude mode of the given LineString.
linestring_name | The name of the LineString |
BOOL GE_SetLineStringAltMode | ( | STRING | linestring_name, | |
int | alt_mode | |||
) |
Sets the altitude mode of the given LineString.
linestring_name | The name of the LineString | |
alt_mode | Altitude mode for the given LineString (relativeToGround (0), absolute (1), or clampToGround (2)) |
BOOL GE_GetLineStringTessellate | ( | STRING | linestring_name | ) |
Retrieves the given LineString tessellate state.
linestring_name | The name of the LineString |
BOOL GE_SetLineStringTessellate | ( | STRING | linestring_name, | |
BOOL | tessellate | |||
) |
Sets the given LineString tessellate state.
linestring_name | The name of the LineString | |
tessellate | The state to be applied to the given LineString <tessellate> element |
BOOL GE_SetLineStringParams | ( | STRING | linestring_name, | |
BOOL | extrude, | |||
int | alt_mode, | |||
BOOL | tessellate | |||
) |
Sets the given LineString parameters.
linestring_name | The name of the LineString | |
extrude | The state to be applied to the given LineString <extrude> element | |
alt_mode | Altitude mode for the given LineString (relativeToGround (0), absolute (1), or clampToGround (2)) | |
tessellate | The state to be applied to the given LineString <tessellate> element. |
int GE_GetLineStringPointCount | ( | STRING | linestring_name | ) |
Retrieves the total count of geographical points for the given LineString.
linestring_name | The name of the LineString |
STRING GE_GetLineStringPoints | ( | STRING | linestring_name | ) |
Retrieves a string of all coordinate points for the given LineString.
linestring_name | The name of the LineString |
BOOL GE_SetLineStringPoints | ( | STRING | linestring_name, | |
STRING | points | |||
) |
Sets the coordinate points for the given LineString.
linestring_name | The name of the LineString | |
points | A set of geographical points to be applied to the given LineString <coordinates> element |
BOOL GE_AddLineStringPoints | ( | STRING | linestring_name, | |
STRING | points | |||
) |
Adds geographical points specified in the points parameter to the given LineString <coordinates> element.
linestring_name | The name of the LineString | |
points | A set of geographical points to be applied to the given LineString <coordinates> element |
double GE_GetLineStringDistance | ( | STRING | linestring_name | ) |
Retrieves the distance of the given LineString.
The LineString distance is returned in miles.
linestring_name | The name of the LineString |