For convenience. Defines the positions, colors, and/or optional point properties of a polyline using Cartographic positions. 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 positions. The first color is ignored, each additional color defines the color of the line segment ending at that position. In .NET a Color should be translated to a number by calling its
ToArgbmethod and casting the result as an unsigned integer. - OptionalParameters
- Optional parameters corresponding to positions. Each optional property must have the same number of elements as positions.
See Set for a full discussion.






