Cesium中simple.czml文件格式详解

路径:Cesium入门\Apps\SampleData\simple.czml

  { //包含了czml的版本信息,指定了czml格式的版本号
    "id":"document",//固定值
    "name":"simple",//可自定义的设置值
    "version":"1.0",//版本值,目前只有1.0版本
    "clock":{//设置CZML的时间信息,可选项
      "interval":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
      "currentTime":"2012-03-15T10:00:00Z",
      "multiplier":60,
      "range":"LOOP_STOP",//当前时间到达其开始时间或结束时间时的行为。
      "step":"SYSTEM_CLOCK_MULTIPLIER"//当前时间每一秒是如何前进的。系统时钟倍增器
    }
  }
  • id:固定值

该报文描述的对象ID。id不需要是guid,但是它们确实需要唯一地标识一个CZML源中的一个对象,以及加载到相同作用域中的任何其他CZML源。如果未指定此属性,客户端将自动生成一个惟一的属性。但是,这将阻止以后的数据包引用该对象以向其添加更多数据。

  • name:可自定义设置值

对象的名称。它不必是唯一的,是供用户使用的。

  • version:CZML版本,CZL目前只有1.0版本,固定值

  • clock:设置CZML的时间信息,可选项

Initial settings for a simulated clock when a document is loaded. The start and stop time are configured using the interval property.加载文档时模拟时钟的初始设置。开始和停止时间使用interval属性配置。

Interpolatable: no。Interpolatable是一个形容词,用来描述某个数值或数据集是否能够通过插值法进行估算或预测。在数学和计算机科学中,插值是一种通过已知数据点之间的连续函数来估算缺失数据点的技术。如果一个数据集是可插值的,那么我们就可以使用插值方法来估算其中任意一个数据点的值,这样就可以填补数据集中的空缺或缺失值。反之,如果一个数据集不可插值,则无法使用插值方法来估算其中的缺失数据点。

  • interval:时间间隔

//格式
Default: 0000-00-00T00:00:00Z/9999-12-31T24:00:00Z
  • currentTime:当前时间,以ISO8601格式指定。

  • multiplier:乘数

The multiplier. When step is set to TICK_DEPENDENT, this is the number of seconds to advance each tick. When step is set to SYSTEM_CLOCK_DEPENDENT, this is multiplied by the elapsed system time between ticks. This value is ignored in SYSTEM_CLOCK mode.

乘数。当step设置为TICK_DEPENDENT时,这是每个tick前进的秒数。当step设置为SYSTEM_CLOCK_DEPENDENT时,它将乘以计时之间的系统时间。该值在SYSTEM_CLOCK模式下被忽略。

Default: 1.0

  • range:当前时间到达其开始时间或结束时间时的行为。

Interpolatable: no

  1. UNBOUNDED - The clock will continue advancing in the current direction.时钟将继续向当前方向前进

  1. CLAMPED - The clock will stop.时钟将停止

  1. LOOP_STOP - When the end time is reached while advancing forward, the clock will jump to the start time, and when the start time is reached while advancing backward, the clock will stop.当向前推进到达结束时间时,时钟将跳转到开始时间,当向后推进到达开始时间时,时钟将停止

  • step:当前时间每一秒是如何前进的。Defines how a clock advances each tick.定义时钟如何推进每一步。

Default: SYSTEM_CLOCK_MULTIPLIER

Interpolatable: no

  1. TICK_DEPENDENT - The current time is advanced by multiplier seconds each tick.当前时间每滴答一秒就前进乘数秒。

  1. SYSTEM_CLOCK_MULTIPLIER - The current time is advanced by the amount of system time since the last tick, multiplied by multiplier.前时间按照自上次滴答以来的系统时间量前进,再乘以乘数。

  1. SYSTEM_CLOCK - The clock is always set to the current system time.时钟总是设置为当前系统时间。

  {//使用了一个packet(数据包)对象,
    "id":"9927edc4-e87a-4e1f-9b8b-0bfb3b05b227",
    "name":"Accesses",
    "description":"List of Accesses"
  },
  • description:An HTML description of the object.对象的HTML描述。

A string value. The string can optionally vary with time.字符串值。字符串可以随时间变化。

{//给出了实体的位置,这里使用了cartesian坐标系,表示实体在3D空间中的位置。这个位置是一个由三个数字组成的数组,分别表示x、y和z方向上的位置坐标
    "id":"Satellite/Geoeye1-to-Satellite/ISS",
    "name":"Geoeye1 to ISS",
    "parent":"9927edc4-e87a-4e1f-9b8b-0bfb3b05b227",
    "availability":[
      "2012-03-15T10:16:06.97400000000198Z/2012-03-15T10:33:59.3549999999959Z","2012-03-15T11:04:09.73799999999756Z/2012-03-15T11:21:04.51900000000023Z","2012-03-15T11:52:06.94400000000314Z/2012-03-15T12:08:18.8840000000055Z","2012-03-15T12:40:57.2069999999949Z/2012-03-15T12:54:39.301999999996Z","2012-03-15T13:29:44.5040000000008Z/2012-03-15T13:41:05.96899999999732Z","2012-03-15T14:20:16.8450000000012Z/2012-03-15T14:25:48.0559999999969Z","2012-03-16T07:01:44.4309999999823Z/2012-03-16T07:06:19.6309999999939Z","2012-03-16T07:46:00.457999999984168Z/2012-03-16T07:57:20.8470000000088Z","2012-03-16T08:32:14.5289999999804Z/2012-03-16T08:46:17.0109999999986Z","2012-03-16T09:18:28.4590000000026Z/2012-03-16T09:35:16.6410000000033Z"
    ],
    "description":"<h2>Access times</h2><table class='sky-infoBox-access-table'><tr><th>Start</th><th>End</th><th>Duration</th></tr><tr><td> 2012-03-15 10:16:06.974Z </td><td>2012-03-15 10:33:59.355Z </td><td> 1072.381s </td></tr><tr><td> 2012-03-15 11:04:09.738Z </td><td>2012-03-15 11:21:04.519Z </td><td> 1014.781s </td></tr><tr><td> 2012-03-15 11:52:06.944Z </td><td>2012-03-15 12:08:18.884Z </td><td> 971.940s </td></tr><tr><td> 2012-03-15 12:40:57.207Z </td><td>2012-03-15 12:54:39.302Z </td><td> 822.095s </td></tr><tr><td> 2012-03-15 13:29:44.504Z </td><td>2012-03-15 13:41:05.969Z </td><td> 681.465s </td></tr><tr><td> 2012-03-15 14:20:16.845Z </td><td>2012-03-15 14:25:48.056Z </td><td> 331.211s </td></tr><tr><td> 2012-03-16 07:01:44.431Z </td><td>2012-03-16 07:06:19.631Z </td><td> 275.200s </td></tr><tr><td> 2012-03-16 07:46:00.458Z </td><td>2012-03-16 07:57:20.847Z </td><td> 680.389s </td></tr><tr><td> 2012-03-16 08:32:14.529Z </td><td>2012-03-16 08:46:17.011Z </td><td> 842.482s </td></tr><tr><td> 2012-03-16 09:18:28.459Z </td><td>2012-03-16 09:35:16.641Z </td><td> 1008.182s </td></tr></table>",
    "polyline":{//折线
      "show":[
        {
          "interval":"0000-01-01T00:00:00Z/2012-03-15T10:16:06.97400000000198Z",
          "boolean":false
        },
        {
          "interval":"2012-03-15T10:16:06.97400000000198Z/2012-03-15T10:33:59.3549999999959Z",
          "boolean":true
        },
        {
          "interval":"2012-03-15T10:33:59.3549999999959Z/2012-03-15T11:04:09.73799999999756Z",
          "boolean":false
        },
        {
          "interval":"2012-03-15T11:04:09.73799999999756Z/2012-03-15T11:21:04.51900000000023Z",
          "boolean":true
        },
        {
          "interval":"2012-03-15T11:21:04.51900000000023Z/2012-03-15T11:52:06.94400000000314Z",
          "boolean":false
        },
        {
          "interval":"2012-03-15T11:52:06.94400000000314Z/2012-03-15T12:08:18.8840000000055Z",
          "boolean":true
        },
        {
          "interval":"2012-03-15T12:08:18.8840000000055Z/2012-03-15T12:40:57.2069999999949Z",
          "boolean":false
        },
        {
          "interval":"2012-03-15T12:40:57.2069999999949Z/2012-03-15T12:54:39.301999999996Z",
          "boolean":true
        },
        {
          "interval":"2012-03-15T12:54:39.301999999996Z/2012-03-15T13:29:44.5040000000008Z",
          "boolean":false
        },
        {
          "interval":"2012-03-15T13:29:44.5040000000008Z/2012-03-15T13:41:05.96899999999732Z",
          "boolean":true
        },
        {
          "interval":"2012-03-15T13:41:05.96899999999732Z/2012-03-15T14:20:16.8450000000012Z",
          "boolean":false
        },
        {
          "interval":"2012-03-15T14:20:16.8450000000012Z/2012-03-15T14:25:48.0559999999969Z",
          "boolean":true
        },
        {
          "interval":"2012-03-15T14:25:48.0559999999969Z/2012-03-16T07:01:44.4309999999823Z",
          "boolean":false
        },
        {
          "interval":"2012-03-16T07:01:44.4309999999823Z/2012-03-16T07:06:19.6309999999939Z",
          "boolean":true
        },
        {
          "interval":"2012-03-16T07:06:19.6309999999939Z/2012-03-16T07:46:00.457999999984168Z",
          "boolean":false
        },
        {
          "interval":"2012-03-16T07:46:00.457999999984168Z/2012-03-16T07:57:20.8470000000088Z",
          "boolean":true
        },
        {
          "interval":"2012-03-16T07:57:20.8470000000088Z/2012-03-16T08:32:14.5289999999804Z",
          "boolean":false
        },
        {
          "interval":"2012-03-16T08:32:14.5289999999804Z/2012-03-16T08:46:17.0109999999986Z",
          "boolean":true
        },
        {
          "interval":"2012-03-16T08:46:17.0109999999986Z/2012-03-16T09:18:28.4590000000026Z",
          "boolean":false
        },
        {
          "interval":"2012-03-16T09:18:28.4590000000026Z/2012-03-16T09:35:16.6410000000033Z",
          "boolean":true
        },
        {
          "interval":"2012-03-16T09:35:16.6410000000033Z/9999-12-31T24:00:00Z",
          "boolean":false
        }
      ],
      "width":1,
      "material":{
        "solidColor":{
          "color":{
            "rgba":[
              0,255,0,255
            ]
          }
        }
      },
      "arcType":"NONE",
      "positions":{
        "references":[
          "Satellite/Geoeye1#position","Satellite/ISS#position"
        ]
      }
    }
  },
  • parent:The ID of the parent object, if any.父对象的ID(如果有)。

  • availability:对象的数据可用的一组时间间隔。

Default: 0000-00-00T00:00:00Z/9999-12-31T24:00:00Z

A collection of time intervals, specified in ISO8601 interval format.时间间隔的集合,以ISO8601间隔格式指定。

Interpolatable: no

  • polyline:

A polyline, which is a line in the scene composed of multiple segments.折线,即场景中由多个片段组成的线。

Interpolatable: no

  • show:Whether or not the polyline is shown.是否显示折线。

Default: true

  • width:The width of the polyline.折线的宽度。

Default: 1.0

  • material:The material to use to draw the polyline.用于绘制折线的材料。

  • solidColor:A material that fills the line with a solid color, which may be translucent.一种用纯色填充线条的材料,这种纯色可能是半透明的。

  • color:The color of the surface.表面的颜色。

Default: white

  • rgba:The color specified as an array of color components [Red, Green, Blue, Alpha] where each component is an integer in the range 0-255.

指定为颜色组件[Red, Green, Blue, Alpha]数组的颜色,其中每个组件都是0-255范围内的整数。

  • arcType:The type of arc that should connect the positions of the polyline.应连接折线位置的弧的类型。

  • NONE - The arc is a straight line that does not conform to the surface of an ellipsoid.弧是一条直线,不符合椭球的表面。

  • GEODESIC - The arc is a geodesic, which is the shortest path conforming to the surface of an ellipsoid.弧是测地线,这是符合椭球表面的最短路径。

  • RHUMB - The arc is a rhumb line, or loxodrome, which is the path of constant heading conforming to the surface of an ellipsoid.圆弧是一条垂直直线,或loxodrome,这是符合椭球表面的恒定航向路径。

  • position:The array of positions defining the polyline as a line strip.将折线定义为线条的位置数组。

  • references:The list of positions specified as references. Each reference is to a property that defines a single position, which may change with time.指定为引用的位置列表。每个引用都指向一个属性,该属性定义了一个位置,该位置可能随着时间而变化。

 {//给出了实体的标签(label),包括标签的文本内容、字体、字体大小、颜色和位置等信息
    "id":"AreaTarget/Pennsylvania",
    "name":"Pennsylvania",
    "availability":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
    "description":"<!--HTML-->\r\n<p>Pennsylvania, officially the Commonwealth of Pennsylvania, is a U.S. state that is located in the Northeastern and Mid-Atlantic regions of the United States, and the Great Lakes region. The state borders Delaware to the southeast, Maryland to the south, West Virginia to the southwest, Ohio to the west, Lake Erie and Ontario, Canada to the northwest, New York to the north and New Jersey to the east. The Appalachian Mountains run through the middle of the state.\r\nPennsylvania is the 33rd most extensive, the 6th most populous, and the 9th most densely populated of the 50 United States. The state's four most populous cities are Philadelphia, Pittsburgh, Allentown, and Erie. The state capital is Harrisburg. Pennsylvania has 51 miles (82 km) of coastline along Lake Erie and 57 miles (92 km) of shoreline along the Delaware Estuary. The state is one of the 13 original founding states of the U.S.</p>",
    "label":{
      "fillColor":{
        "rgba":[
          255,0,0,255
        ]
      },
      "font":"11pt Lucida Console",
      "horizontalOrigin":"LEFT",
      "outlineColor":{
        "rgba":[
          0,0,0,255
        ]
      },
      "outlineWidth":2,
      "show":true,
      "style":"FILL_AND_OUTLINE",
      "text":"Pennsylvania",
      "verticalOrigin":"CENTER"
    },
    "point":{
      "color":{
        "rgba":[
          255,0,0,255
        ]
      },
      "outlineWidth":0,
      "pixelSize":5,
      "show":true
    },
    "polygon":{
      "positions":{
        "cartographicRadians":[
          -1.3522077240237877,0.6932383436059149,0,-1.3630314740519183,0.6933402355423893,0,-1.3671958658568963,0.6933164116349497,0,-1.3680725973741055,0.6933103378544294,0,-1.3756294390644388,0.693299289626768,0,-1.37759145155452,0.693285710886166,0,-1.3857323154905137,0.6932329317993553,0,-1.387204693159873,0.6932497043584019,0,-1.3921642397583167,0.6932764600632868,0,-1.3948369679907713,0.6932740164944832,0,-1.403752356914346,0.6932421638673993,0,-1.4054136839844849,0.6932660224548367,0,-1.4054203339781848,0.6974061187809533,0,-1.40542577948586,0.6985302157572724,0,-1.4054446815793686,0.7009683713811051,0,-1.4054013802466303,0.7051660984836011,0,-1.4054152208071435,0.7064882030988564,0,-1.405374066131245,0.7092531367782914,0,-1.405344517975858,0.7130398911135833,0,-1.4053553041696831,0.7137921630703696,0,-1.4053903506948033,0.717847558527404,0,-1.4053391082894005,0.7241248283511975,0,-1.4054076823049872,0.724226301809922,0,-1.4053853251132624,0.7304339504245932,0,-1.4053495111334156,0.732809309071272,0,-1.3921311340866651,0.7377041737073639,0,-1.3921036273290417,0.7330926289989202,0,-1.3894979895551738,0.7330486468055195,0,-1.3798484450375388,0.7330586305001696,0,-1.3773883852209647,0.7330357493325297,0,-1.3666816595180005,0.7330283146713379,0,-1.3649219132838528,0.7330070217223114,0,-1.3569064163205986,0.7329918900387238,0,-1.354599770992057,0.7330180002614316,0,-1.3433550648083268,0.7330904667885002,0,-1.342653826195758,0.7330826651925256,0,-1.3362924480939438,0.7330909906599572,0,-1.328981348766283,0.7330498535192947,0,-1.3282799705255588,0.7330296775356948,0,-1.317369878937513,0.7329750316713255,0,-1.3156783227347815,0.7330097463386135,0,-1.3150298279817356,0.7329135612488367,0,-1.314652993784966,0.7323625607125478,0,-1.3139482994025766,0.7321239392772451,0,-1.313439099339346,0.7307498413128194,0,-1.3119864438784967,0.730731794657347,0,-1.3115849481938966,0.7305214824566543,0,-1.3111742895338896,0.7304061685456499,0,-1.3110525702187852,0.7301933081536464,0,-1.3103904967805342,0.7297947098063845,0,-1.3106869061243591,0.7294990335104291,0,-1.3106926482391603,0.7291819769374323,0,-1.31006717438301,0.7290287195687776,0,-1.3099912873941209,0.7282685936295457,0,-1.3101384361377446,0.7280613880956304,0,-1.3098927634269164,0.7267083737010938,0,-1.3102614817770415,0.7262854105154587,0,-1.3102163475385047,0.7261352772658493,0,-1.3094348237109952,0.7254602361685523,0,-1.3092568000409661,0.7250021744241752,0,-1.308504580282513,0.7240255927322389,0,-1.3078199921164888,0.72403864782177,0,-1.3072264926882589,0.7236467166299556,0,-1.307169245851595,0.7233461185166344,0,-1.3066244760589671,0.7233894550695429,0,-1.3053806318405998,0.7230886126517037,0,-1.304717877749918,0.7230926094796837,0,-1.3044598132746381,0.7229514646847072,0,-1.304466742212013,0.7225949985688139,0,-1.3038530144070728,0.7221311597980974,0,-1.3037620652441313,0.7217037983975161,0,-1.3053608047669052,0.7210299440396993,0,-1.3054040889283545,0.7207376013315654,0,-1.3059460661823945,0.7205192954872712,0,-1.3066654038056376,0.7195438482063814,0,-1.3066038809082192,0.7191939794384397,0,-1.307509392852277,0.7180478912764205,0,-1.3081242027013054,0.7175373648956472,0,-1.308728104256843,0.717319652461049,0,-1.3088029439804343,0.7170121428373868,0,-1.3084086390699141,0.7170281126169686,0,-1.3090170610213867,0.7166757130974598,0,-1.3096123057176687,0.7160773791853247,0,-1.3102183365700435,0.7157721733780154,0,-1.3110323583836496,0.7155894722475611,0,-1.3114282515208273,0.715192915896617,0,-1.3113623303982265,0.7149382548578634,0,-1.3103886282856712,0.7138982478932651,0,-1.3102830183588716,0.7135714872902171,0,-1.3099828739776964,0.7133519073843598,0,-1.3099502537461944,0.7130661620241878,0,-1.3107343082404708,0.71278013738274,0,-1.3105539981986583,0.7124678106579555,0,-1.3107517440349952,0.7119489067090039,0,-1.31127146832641,0.711618131825877,0,-1.311969495533574,0.7116548186295764,0,-1.3123766984036227,0.7111869655638845,0,-1.312273898452243,0.7107655382832366,0,-1.3125810939125313,0.7101058734983065,0,-1.3122094259121033,0.7098219258392405,0,-1.3126432625232558,0.7094893707227551,0,-1.312451642745932,0.7092008153872138,0,-1.3124943858525955,0.7088611393395713,0,-1.3123744118489564,0.7083205235010411,0,-1.3124452547722973,0.708092164574061,0,-1.3121783938297178,0.7078498255687451,0,-1.311170361152473,0.7079894345182887,0,-1.3103895005747963,0.707650107564989,0,-1.3101083802768658,0.7072250674577409,0,-1.3102207619963784,0.7060949839922579,0,-1.309999715938635,0.7054652167207774,0,-1.3093681334206897,0.7051362570197143,0,-1.3090052619072645,0.705263631186341,0,-1.3085229574630952,0.7051907985987479,0,-1.3081275878407266,0.704161490481042,0,-1.3078189262517947,0.7039573043817338,0,-1.3076207789382897,0.7036127588721909,0,-1.3069140774300372,0.7033606983954779,0,-1.3062526671932404,0.7024681543136311,0,-1.3044385887704104,0.701233735108179,0,-1.3042056919320535,0.7007377298965646,0,-1.304568964853792,0.7003023050552322,0,-1.3060128412908008,0.7001592403389345,0,-1.3067616226475691,0.699494182468726,0,-1.3082325342309757,0.6991443834599382,0,-1.3087087299920748,0.6987265340836812,0,-1.3097941505737305,0.698265086353168,0,-1.310184580829599,0.6978768726763835,0,-1.3104732932768435,0.6977082912802286,0,-1.3109336414681285,0.6977250115221181,0,-1.3114380592151826,0.6973624890931379,0,-1.3115653635501037,0.6969928457322186,0,-1.3113672162189656,0.6963321861243438,0,-1.311491064806832,0.6960654124902647,0,-1.3122363904438565,0.6959921609813949,0,-1.313307848385792,0.6955209219518895,0,-1.3134255708764333,0.69543595930277,0,-1.3150346253356304,0.6954879526165308,0,-1.316335524310828,0.6946234384593984,0,-1.3171997767525299,0.6951045210815227,0,-1.319179975605344,0.6953413971468251,0,-1.3202367902547627,0.695309754284478,0,-1.3211230163524166,0.694998230372876,0,-1.3220100103668133,0.6942036166803666,0,-1.322522002814063,0.6933243719682792,0,-1.3228041702830704,0.6933123989973828,0,-1.3288801694793237,0.6932838277389112,0,-1.330519016712254,0.693277265241703,0,-1.3363957516005893,0.6932495491982945,0,-1.3402469439857425,0.6932668452760358,0,-1.3438479258876066,0.6932604746923505,0,-1.347761635982283,0.6932567744504896,0,-1.3520094545588786,0.6932461975964622,0,-1.3522077240237877,0.6932383436059149,0
        ]
      },
      "material":{
        "solidColor":{
          "color":{
            "rgba":[
              255,0,0,77
            ]
          }
        }
      },
      "fill":false,
      "outline":true,
      "outlineColor":{
        "rgba":[
          255,0,0,255
        ]
      }
    },
    "position":{
      "cartesian":[//迪卡尔,分别是对应位置的XYZ分量
        1152255.80150063,-4694317.951340558,4147335.9067563135
      ]
    }
  },
  • label:用于定义场景中实体对象的标签信息,包括标签的文本内容、字体、字体大小、颜色和位置等属性。

  • text:标签文本的内容,这里为"Pennsylvania"。

  • font:标签文本的字体样式,这里为"11pt Lucida Console"。

  • fillColor:标签文本的填充颜色,这里为白色。

  • outlineColor:标签文本的轮廓线颜色,这里为rgba颜色。

  • style:标签文本的显示样式,这里为"fill_and_outline",表示同时填充和描边文本。

  • outlineWidth:标签文本的轮廓线宽度,这里为2。

  • show:标签是否显示,这里为true。

  • scale:标签文本的缩放比例,这里为1。

  • pixelOffset:标签文本的像素偏移量,这里为[0, -9],表示在垂直方向上向下偏移9像素。

  • verticalOrigin:用于定义标签文本相对于实体对象的垂直方向上的对齐方式,即标签的垂直起点位置。该属性的取值可以是以下几种:

  • "BOTTOM":标签文本的底部与实体对象的位置对齐。

  • "CENTER":标签文本的中心与实体对象的位置对齐。默认值

  • "TOP":标签文本的顶部与实体对象的位置对齐。

  • point:定义场景中点类型实体对象的属性和状态,包括位置、颜色、大小、样式等。

  • id:实体对象的唯一标识符。

  • position:实体对象的位置属性,可以使用cartographicDegrees、cartographicRadians、cartesian、cartesianVelocity等属性来表示。

  • point:点类型实体对象的属性和状态。

  • color:点的颜色,可以使用RGBA、RGB、HSL、CSS颜色字符串等来表示。

  • pixelSize:点的像素大小。

  • outlineColor:点的轮廓线颜色。

  • outlineWidth:点的轮廓线宽度。

  • show:点是否显示。

  • disableDepthTestDistance:禁用深度测试的距离。当点距离相机的距离小于或等于该值时,将禁用深度测试,以确保点始终可见。如果没有指定该属性,则默认为0,表示始终使用深度测试。

  • polygon:用于定义场景中多边形类型实体对象的属性和状态,包括位置、外观、材质、高度等。

  • id:实体对象的唯一标识符。

  • polygon:多边形类型实体对象的属性和状态。

  • positions:多边形的位置属性,使用cartographicDegrees或cartesian属性来表示多边形的位置。positions属性定义了多边形的各个顶点位置。

  • material:多边形的材质属性,可以使用solidColor或image来表示多边形的材质。在本示例中,使用的是solidColor。

  • height:多边形的高度,通常用于表示多边形的底部高度。在本示例中,height的值为0,表示多边形的底部高度为0。

  • extrudedHeight:多边形的拉伸高度,通常用于表示多边形的顶部高度。在本示例中,extrudedHeight的值为100000,表示多边形的顶部高度为100000。

  • outline:是否绘制多边形的轮廓线。

  • outlineColor:多边形的轮廓线颜色。

  • show:多边形是否显示。

  • fill:表示多边形是否填充。它是一个布尔类型的属性,如果值为true,则多边形将被填充,如果值为false,则多边形将不被填充,只绘制边界线。

{//给出了实体的模型(model)信息,包括模型文件的URL、模型的缩放比例和相对于实体的位置等信息
    "id":"Facility/AGI",
    "name":"AGI",
    "availability":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
    "description":"<!--HTML-->\r\n<p>\r\nAnalytical Graphics, Inc. (AGI) develops commercial modeling and analysis software used by more than 40,000 global space, defense and intelligence professionals. AGI founded Cesium to meet the need for a cross-platform virtual globe with dynamic-data visualization. AGI continues to invest heavily in Cesium's development and facilitate the growth of the user and contributor community.\r\n</p>",
    "billboard":{
      "eyeOffset":{
        "cartesian":[ //迪卡尔,分别是对应位置的XYZ分量
          0,0,0
        ]
      },
      "horizontalOrigin":"CENTER",
      "image":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACvSURBVDhPrZDRDcMgDAU9GqN0lIzijw6SUbJJygUeNQgSqepJTyHG91LVVpwDdfxM3T9TSl1EXZvDwii471fivK73cBFFQNTT/d2KoGpfGOpSIkhUpgUMxq9DFEsWv4IXhlyCnhBFnZcFEEuYqbiUlNwWgMTdrZ3JbQFoEVG53rd8ztG9aPJMnBUQf/VFraBJeWnLS0RfjbKyLJA8FkT5seDYS1Qwyv8t0B/5C2ZmH2/eTGNNBgMmAAAAAElFTkSuQmCC",
      "pixelOffset":{
        "cartesian2":[
          0,0
        ]
      },
      "scale":1.5,
      "show":true,
      "verticalOrigin":"CENTER"
    },
    "label":{
      "fillColor":{
        "rgba":[
          0,255,255,255
        ]
      },
      "font":"11pt Lucida Console",
      "horizontalOrigin":"LEFT",
      "outlineColor":{
        "rgba":[
          0,0,0,255
        ]
      },
      "outlineWidth":2,
      "pixelOffset":{
        "cartesian2":[
          12,0
        ]
      },
      "show":true,
      "style":"FILL_AND_OUTLINE",
      "text":"AGI",
      "verticalOrigin":"CENTER"
    },
    "position":{
      "cartesian":[
        1216469.9357990976,-4736121.71856379,4081386.8856866374
      ]
    }
  },
  • billboard:表示一个在三维场景中的图像,通常用于表示点对象。billboard对象的外观通常由一个图像和其他属性(如尺寸、颜色、透明度等)组成。

  • image:指定要显示的图像的URL。

  • scale:指定图像的大小。该属性是一个数字,表示图像的缩放比例。默认值为1.0。

  • color:指定图像的颜色。该属性是一个包含四个元素的数组,分别表示红色、绿色、蓝色和透明度(RGBA)通道的值。每个元素的值是一个0到255之间的整数。默认值为[255, 255, 255, 255],即白色不透明。

  • show:指定是否显示图像。该属性是一个布尔类型的值。如果值为true,则图像将被显示;如果值为false,则图像将被隐藏。默认值为true。

  • eyeOffset:指定相对于实体位置的摄像机视角偏移量。该属性是一个数组,表示相对于实体位置的x、y和z方向上的偏移量(单位为米)。默认值为[0.0, 0.0, 0.0],即不进行偏移。

  • horizontalOrigin:指定图像的水平对齐方式。该属性是一个字符串类型的值,可取以下值之一:

  • "LEFT":图像的左侧与实体位置对齐。

  • "CENTER":图像的中心与实体位置对齐。

  • "RIGHT":图像的右侧与实体位置对齐。

  • 默认值为"CENTER"。

  • verticalOrigin:指定图像的垂直对齐方式。该属性是一个字符串类型的值,可取以下值之一:

  • "BOTTOM":图像的底部与实体位置对齐。

  • "CENTER":图像的中心与实体位置对齐。

  • "TOP":图像的顶部与实体位置对齐。

  • 默认值为"CENTER"。

  • pixelOffset:指定相对于图像位置的像素偏移量。该属性是一个数组,表示相对于图像位置的x和y方向上的偏移量(单位为像素)。默认值为[0.0, 0.0],即不进行偏移。

  • rotation:指定图像的旋转角度。该属性是一个数字,表示图像绕z轴的旋转角度(单位为度)。默认值为0.0,即不进行旋转。


余下接二


参考:

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

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值