CZML.jl

Build Status

Create CZML files in Julia.

Installation

]add CZML

Quick Start

Recreating the CZML Colors example from Cesium Sandcastle:

using CZML

# Creating the packets
p0 = Preamble(name = "CZML Colors")
p1 = Packet(
    id = "rgba",
    name = "Rectangle with outline using RGBA Colors",
    rectangle = Rectangle(
        coordinates = RectangleCoordinates(wsenDegrees = [-120, 40, -110, 50]),
        fill = true,
        material = Material(
            solidColor = SolidColorMaterial(color = Color(rgba = [255, 0, 0, 100])),
        ),
        height = 0,
        outline = true,
        outlineColor = Color(rgba = [0, 0, 0, 255]),
    ),
)
p2 = Packet(
    id = "rgbaf",
    name = "Rectangle using RGBAF Colors",
    rectangle = Rectangle(
        coordinates = RectangleCoordinates(wsenDegrees = [-100, 40, -90, 50]),
        fill = true,
        material = Material(
            solidColor = SolidColorMaterial(color = Color(rgbaf = [1, 0, 0, 0.39])),
        ),
        height = 0,
        outline = true,
        outlineColor = Color(rgba = [0, 0, 0, 255]),
    ),
)

# Creating the document
d = Document(; preamble = p0, packets = [p1, p2])

# Printing the CZML file
fileName = tempname() * ".czml"
printCZML(d, fileName)

Contributing

CZML.jl is a new package and any help is greatly appreciated. The following is an unsorted list of the highest priority items to do: