polylineVolume with CZML

Hello everyone,

I am trying to render a polylineVolume object with cesium with CZML format but it appears that this structure is not recognized

{

"label": {"text": "Green box with beveled corners and outline",

"polylineVolume" : {

    "positions" : [-90.0, 32.0, 0.0,

                   -90.0, 36.0, 100000.0,

                   -94.0, 36.0, 0.0],

    "shape" : [[-50000, -50000],

            [50000, -50000],

            [50000, 50000],

            [-50000, 50000]],

    "cornerType" : "BEVELED",

    "material": {

        "polylineOutline": {

            "color": { "rgba": [255, 160, 0, 140] },

            "outlineColor": { "rgba": [0, 0, 0, 60] },

            "outlineWidth": 2

        }

    }

}

furthermore there isn’t any documentation in CZML format documentation page for this structure

https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/CZML-Structure

Hi Christos_Ch,

Did you work this one out? I also cant get it to work

Got a simple sample to work:

[{
“id” : “document”,
“name” : “CZML Geometries: Polygon”,
“version” : “1.0”

},  {
"id": "1",
"polylineVolume": {
    "cornerType": "ROUNDED",
    "material": {
        "solidColor": {
            "color": {
                "rgba": [
                    0,
                    160,
                    48,
                    255
                ]
            }
        }
    },
    "shape": {
      "cartesian":
        [-50,-50, 50, -50,
        50, 50, -50,  50]
    },
    "positions": {
        "cartographicDegrees": [
            30,
            25,
            10,
            31,
            26,
            10
            
        ]     
    }
}

}

]

1 Like