Creating a Marker Text File

You can define a marker in an ASCII text file which can be displayed on the 2D and 3D Graphics windows. Using this format, you can create a marker consisting of vector lines and points and display it as an object marker in the 2D and 3D Graphics windows.

Use the keywords in the following table to create a marker text file.

Keyword Description
Begin  STKMarker Required first line of file.
End  STKMarker Required last line of file.
LineWidth Sets the line width for all subsequent lines in the file. You can add multiple LineWidth keywords to create lines with different thicknesses. The default value is 1.0.
BEGIN  Line
END  Line
Describes a single connected line drawn between all x,y values specified inside the BEGIN Line and END line keywords and using the set line width. The center of the marker has the coordinate of 0,0 with x increasing to the right and y increasing downward. You can use multiple Begin-End line sequences to create disjointed lines.
PointSize Sets the point size in pixels for all subsequent points in the file. You can add multiple PointSize keywords to create points of different sizes. The default value is 1.0.
BEGIN  Points
END  Points
Describes a set of x,y points using the set point size. The center of the marker has the coordinate of 0,0 with x increasing to the right and y increasing downward. You can use multiple Begin-End point sequences to create sets of points of different sizes.

Sample Marker Text File

Use the following sample as a guide when creating a marker text file. This sample creates a marker of a vector line triangle with a line width of 5 pixels and 3 points inside the triangle.

BEGIN STKMarker
        LineWidth 5.0
        BEGIN Line
                0 -20
                -20 20
                20 20
                0 -20
        END Line
        PointSize 3.0
        BEGIN Points
                0 -10
                -10 10
                10 10
        END Points
End STKMarker