For convenience. Defines the positions, colors, and/or optional point properties of a polyline using cartographic positions. Longitude and latitude are in radians, and altitude is in meters. This is equivalent to converting each position in positions to cartesian and calling Set.
| [Visual Basic .NET] |
|---|
|
| [C#] |
|---|
|
| [Managed C++] |
|---|
|
| [Unmanaged C++] |
|---|
|
| [Java] |
|---|
|
| [Python - STK API] |
|---|
def SetCartographicWithColorsAndOptionalParameters(self, CentralBody:str, Positions:list, Colors:list, OptionalParameters:"IAgStkGraphicsPolylinePrimitiveOptionalParameters") -> None: |
- CentralBody
- The central body the positions are defined on.
- Positions
- An array containing new positions for the polyline, provided in the order latitude, longitude, altitude.
- Colors
- An array containing the numeric representation of colors for the polyline. There must be one color for each position in
. The first color is ignored, each additional color defines the color of the line segment ending at that position. In .NET a should be translated to a number by calling its ToArgb method and casting the result as an unsigned integer. - OptionalParameters
- Optional parameters corresponding to
. Each optional property must have the same number of elements as .





