Cesium中simple.szml文件格式详解(二)

  {
    "id":"Satellite/Geoeye1",
    "name":"Geoeye1",
    "availability":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
    "description":"<!--HTML-->\r\n<p>GeoEye-1 is a high-resolution earth observation satellite owned by GeoEye, which was launched in September 2008.</p>\r\n\r\n<p>On December 1, 2004, General Dynamics C4 Systems announced it had been awarded a contract worth approximately $209 million to build the OrbView-5 satellite. Its sensor is designed by the ITT Exelis.</p>\r\n\r\n<p>The satellite, now known as GeoEye-1, was originally scheduled for April 2008 but lost its 30-day launch slot to a U.S. government mission which had been delayed. It was rescheduled for launch August 22, 2008 from Vandenberg Air Force Base aboard a Delta II launch vehicle. The launch was postponed to September 4, 2008, due to unavailability of the Big Crow telemetry-relay aircraft. It was delayed again to September 6 because Hurricane Hanna interfered with its launch crews.</p>\r\n\r\n<p>The launch took place successfully on September 6, 2008 at 11:50:57 a.m. PDT (18:50:57 UTC). The GeoEye-1 satellite separated successfully from its Delta II launch vehicle at 12:49 p.m. PDT (19:49 UTC), 58 minutes and 56 seconds after launch.</p>",
    "billboard":{
      "eyeOffset":{
        "cartesian":[
          0,0,0
        ]
      },
      "horizontalOrigin":"CENTER",
      "image":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADJSURBVDhPnZHRDcMgEEMZjVEYpaNklIzSEfLfD4qNnXAJSFWfhO7w2Zc0Tf9QG2rXrEzSUeZLOGm47WoH95x3Hl3jEgilvDgsOQUTqsNl68ezEwn1vae6lceSEEYvvWNT/Rxc4CXQNGadho1NXoJ+9iaqc2xi2xbt23PJCDIB6TQjOC6Bho/sDy3fBQT8PrVhibU7yBFcEPaRxOoeTwbwByCOYf9VGp1BYI1BA+EeHhmfzKbBoJEQwn1yzUZtyspIQUha85MpkNIXB7GizqDEECsAAAAASUVORK5CYII=",
      "pixelOffset":{
        "cartesian2":[
          0,0
        ]
      },
      "scale":1.5,
      "show":true,
      "verticalOrigin":"CENTER"
    },
    "label":{
      "fillColor":{
        "rgba":[
          0,255,0,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":"Geoeye 1",
      "verticalOrigin":"CENTER"
    },
    "path":{
      "show":[
        {
          "interval":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
          "boolean":true
        }
      ],
      "width":1,
      "material":{
        "solidColor":{
          "color":{
            "rgba":[
              0,255,0,255
            ]
          }
        }
      },
      "resolution":120,
      "leadTime":[
        {
          "interval":"2012-03-15T10:00:00Z/2012-03-15T10:39:30.5752243210009Z",
          "epoch":"2012-03-15T10:00:00Z",
          "number":[
            0,5903.376977238004,
            5903.376977238004,0
          ]
        },
        {
          "interval":"2012-03-15T10:39:30.5752243210009Z/2012-03-15T12:17:53.9522015590046Z",
          "epoch":"2012-03-15T10:39:30.5752243210009Z",
          "number":[
            0,5903.376977238004,
            5903.376977238004,0
          ]
        },
        //………………省略n组数据
        ]
        "trailTime":[
        {
          "interval":"2012-03-15T10:00:00Z/2012-03-15T10:39:30.5752243210009Z",
          "epoch":"2012-03-15T10:00:00Z",
          "number":[
            0,0,
            5903.376977238004,5903.376977238004
          ]
        },
        {
          "interval":"2012-03-15T10:39:30.5752243210009Z/2012-03-15T12:17:53.9522015590046Z",
          "epoch":"2012-03-15T10:39:30.5752243210009Z",
          "number":[
            0,0,
            5903.376977238004,5903.376977238004
          ]
        },
        //…………省略n个数据
        ]
        }
    },
    "position":{
      "interpolationAlgorithm":"LAGRANGE",
      "interpolationDegree":5,
      "referenceFrame":"INERTIAL",
      "epoch":"2012-03-15T10:00:00Z",
      "cartesian":[
        0,4650397.56551457,-3390535.52275848,-4087729.48877329,
        300,3169722.12564676,-2787480.80604407,-5661647.74541255,
        600,1369743.14695017,-1903662.23809705,-6663952.07552171,
        900,-567881.181741598,-828602.646229013,-6995188.66804375,
        //…………省略n个数据
         ]
    }
  },
  • path:用于描述一个实体对象的运动路径,它通常与position属性一起使用来描述实体对象的运动轨迹。path属性可以用于各种类型的实体对象,如点、多边形、模型等。是一个包含多个时间段的数组,每个时间段包含一个时间间隔和该时间间隔内实体对象的位置信息。在每个时间段内,可以指定实体对象在地球上的位置和方向,以及实体对象的颜色、线条宽度、材质等其他属性。

  • show:指示路径是否可见。

  • width:路径的宽度。

  • material:路径的材质,可以使用纯色、图片等多种类型。

  • resolution:路径的分辨率,即路径上点的数量。

  • leadTime:路径的领先时间,单位为秒。

  • trailTime:路径的追踪时间,单位为秒。

  • position:路径的位置信息,包含了实体对象在每个时间段的位置和方向,以及时间插值算法和插值次数等信息。

{
    "id":"Satellite/Geoeye1/Sensor/Sensor",
    "name":"Sensor",
    "parent":"Satellite/Geoeye1",
    "availability":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
    "description":"<!--HTML-->\r\nGeoEye-1 primary optical sensor",
    "agi_rectangularSensor":{
      "xHalfAngle":0.03490658503988659,
      "yHalfAngle":0.1308996938995747,
      "radius":5e7,
      "show":true,
      "showIntersection":true,
      "intersectionColor":{
        "rgba":[
          91,141,42,255
        ]
      },
      "intersectionWidth":1,
      "portionToDisplay":"COMPLETE",
      "ellipsoidSurfaceMaterial":{
        "solidColor":{
          "color":{
            "rgba":[
              255,255,255,0
            ]
          }
        }
      },
      "ellipsoidHorizonSurfaceMaterial":{
        "solidColor":{
          "color":{
            "rgba":[
              91,141,42,102
            ]
          }
        }
      },
      "lateralSurfaceMaterial":{
        "solidColor":{
          "color":{
            "rgba":[
              91,141,42,102
            ]
          }
        }
      },
      "domeSurfaceMaterial":{
        "solidColor":{
          "color":{
            "rgba":[
              255,255,255,0
            ]
          }
        }
      }
    },
    "position":{
      "reference":"Satellite/Geoeye1#position"
    },
    "orientation":{
      "interpolationAlgorithm":"LAGRANGE",
      "interpolationDegree":1,
      "epoch":"2012-03-15T10:00:00Z",
      "unitQuaternion":[
        0,0.45652188368372576,-0.049580035995243577,-0.8819344359461565,0.10640131785324795,
        300,0.309688526062018,-0.0592870464529779,-0.945283886004075,0.0837641797515638,
        600,0.15524757622990795,-0.06613430791377527,-0.9841132393764626,0.05518673278488507,
        900,-0.00292111994175703,-0.0708577012756388,-0.997213694292164,0.0231408976574577,
        1200,-0.16092541190488696,-0.07366221105872979,-0.9841684849777448,-0.009449002158555368,
        1500,-0.314913668750939,-0.0741332480934805,-0.945389362086838,-0.0396559808096601,
        //…………省略n个数据
         ]
    }
  },
  • agi_rectangularSensor:描述一个矩形传感器对象,通过指定传感器的属性,如位置、方向、视场角度、可视范围等来控制传感器的视图。

下面是一些在CZML中描述AGI Rectangular Sensor对象时可能使用的属性:

  • id:AGI Rectangular Sensor对象的唯一标识符。

  • name:AGI Rectangular Sensor对象的名称。

  • description:AGI Rectangular Sensor对象的描述信息。

  • availability:定义对象的可用性时间段。

  • position:传感器位置的Cartesian3坐标,指定传感器的位置。

  • orientation:传感器方向的Quaternion,指定传感器的方向。

  • halfAxes:传感器半轴的Matrix3,指定传感器的形状。

  • show:表示传感器是否可见。

  • innerHalfAngle:传感器内部张角的角度。

  • outerHalfAngle:传感器外部张角的角度。

  • xHalfAngle:传感器水平方向张角的一半,单位为度。

  • yHalfAngle:传感器竖直方向张角的一半,单位为度。

  • minimumClockAngle:传感器最小方位角的弧度。

  • maximumClockAngle:传感器最大方位角的弧度。

  • minimumConeAngle:传感器最小半角的弧度。

  • maximumConeAngle:传感器最大半角的弧度。

  • radius:传感器的半径,指定传感器的大小。

  • material:传感器的材质属性,如颜色、透明度等。

  • intersectionColor:传感器与其他对象相交时显示的颜色。

  • intersectionWidth:传感器与其他对象相交时的宽度。

  • showIntersection:表示是否显示传感器与其他对象相交时的区域。

  • portionToDisplay:用于指定一个实体在其时间间隔内应该呈现的部分。对于实体,可以定义一个时间间隔,指定实体应该从开始时间到结束时间之间的某个时间段内呈现。该属性的值范围为0.0到1.0之间,其中0.0表示实体的开始时间,1.0表示实体的结束时间。

  • ellipsoidSurfaceMaterial:用于定义椭球表面材质,可以应用于任何使用几何形状的实体,例如椭球体、圆锥体、棱柱体等。该材质允许您自定义表面颜色、透明度、光照和其他属性,以创建各种不同的可视化效果。

  • lateralSurfaceMaterial:用于定义侧面表面材质,可以应用于任何使用几何形状的实体,例如圆柱体、圆锥体等。该材质允许您自定义表面颜色、透明度、光照和其他属性,以创建各种不同的可视化效果。

  • domeSurfaceMaterial:用于定义半球体表面的材质,可以应用于任何使用几何形状的实体,例如半球体、圆锥体等。该材质允许您自定义表面颜色、透明度、光照和其他属性,以创建各种不同的可视化效果。

这些属性可以通过CZML描述传感器的位置、方向、形状、大小、可见性等信息,并与其他Cesium组件集成在一起,创建一个模拟传感器的地球场景。同时,这些属性也可以通过Cesium的API进行动态修改,以模拟传感器观测的变化。

  • orientation:用于描述实体对象的方向或者旋转信息。

  • unitQuaternion:四元数表示实体的旋转姿态。

  • velocity:实体的线速度,单位为米每秒。

  • angularVelocity:实体的角速度,单位为弧度每秒。

  • position:实体的位置信息。

  • velocityReferenceFrame:速度参考系,可以是惯性系、相对于实体的本地系或其他参考系。

  • interpolationAlgorithm:插值算法。

  • interpolationDegree:插值次数。

  • referenceFrame:参考系。

{
    "id":"Satellite/ISS",
    "name":"ISS",
    "availability":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
    "description":"<!--HTML-->\r\n<p>The International Space Station (ISS) is a space station, or a habitable artificial satellite in low Earth orbit. It is a modular structure whose first component was launched in 1998. Now the largest artificial body in orbit, it can often be seen at the appropriate time with the naked eye from Earth. The ISS consists of pressurised modules, external trusses, solar arrays and other components. ISS components have been launched by American Space Shuttles as well as Russian Proton and Soyuz rockets. In 1984 the ESA was invited to participate in Space Station Freedom. In 1993, after the USSR ended, the United States and Russia merged Mir-2 and Freedom together.\r\nThe ISS serves as a microgravity and space environment research laboratory in which crew members conduct experiments in biology, human biology, physics, astronomy, meteorology and other fields. The station is suited for the testing of spacecraft systems and equipment required for missions to the Moon and Mars.</p>\r\n\r\n<p>Since the arrival of Expedition 1 on 2 November 2000, the station has been continuously occupied for 13 years and 86 days, the longest continuous human presence in space. (In 2010, the station surpassed the previous record of almost 10 years (or 3,634 days) held by Mir.) The station is serviced by a variety of visiting spacecraft: Soyuz, Progress, the Automated Transfer Vehicle, the H-II Transfer Vehicle, Dragon, and Cygnus. It has been visited by astronauts and cosmonauts from 15 different nations.</p>\r\n\r\n<p>After the U.S. Space Shuttle program ended in 2011, Soyuz rockets became the only provider of transport for astronauts at the International Space Station.\r\nThe ISS programme is a joint project among five participating space agencies: NASA, Roskosmos, JAXA, ESA, and CSA. The ownership and use of the space station is established by intergovernmental treaties and agreements. The station is divided into two sections, the Russian Orbital Segment (ROS) and the United States Orbital Segment (USOS), which is shared by many nations. The ISS maintains an orbit with an altitude of between 330 km (205 mi) and 435 km (270 mi) by means of reboost manoeuvres using the engines of the Zvezda module or visiting spacecraft. It completes 15.410 orbits per day. The ISS is funded until 2024, and may operate until 2028. The Russian Federal Space Agency, Roskosmos (RKA) has proposed using the ISS to commission modules for a new space station, called OPSEK, before the remainder of the ISS is deorbited. ISS is the ninth space station to be inhabited by crews, following the Soviet and later Russian Salyut, Almaz, and Mir stations, and Skylab from the US.</p>",
    "billboard":{
      "eyeOffset":{
        "cartesian":[
          0,0,0
        ]
      },
      "horizontalOrigin":"CENTER",
      "image":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADJSURBVDhPnZHRDcMgEEMZjVEYpaNklIzSEfLfD4qNnXAJSFWfhO7w2Zc0Tf9QG2rXrEzSUeZLOGm47WoH95x3Hl3jEgilvDgsOQUTqsNl68ezEwn1vae6lceSEEYvvWNT/Rxc4CXQNGadho1NXoJ+9iaqc2xi2xbt23PJCDIB6TQjOC6Bho/sDy3fBQT8PrVhibU7yBFcEPaRxOoeTwbwByCOYf9VGp1BYI1BA+EeHhmfzKbBoJEQwn1yzUZtyspIQUha85MpkNIXB7GizqDEECsAAAAASUVORK5CYII=",
      "pixelOffset":{
        "cartesian2":[
          0,0
        ]
      },
      "scale":1.5,
      "show":true,
      "verticalOrigin":"CENTER"
    },
    "label":{
      "fillColor":{
        "rgba":[
          255,0,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":"ISS",
      "verticalOrigin":"CENTER"
    },
    "path":{
      "show":[
        {
          "interval":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
          "boolean":true
        }
      ],
      "width":1,
      "material":{
        "solidColor":{
          "color":{
            "rgba":[
              255,0,255,255
            ]
          }
        }
      },
      "resolution":120,
      "leadTime":[
        {
          "interval":"2012-03-15T10:00:00Z/2012-03-15T10:44:56.1031157730031Z",
          "epoch":"2012-03-15T10:00:00Z",
          "number":[
            0,5537.546684141998,
            5537.546684141998,0
          ]
        },
        {
          "interval":"2012-03-15T10:44:56.1031157730031Z/2012-03-15T12:17:13.6497999150015Z",
          "epoch":"2012-03-15T10:44:56.1031157730031Z",
          "number":[
            0,5537.546684141998,
            5537.546684141998,0
          ]
        },
        //省略一些数据
        ],
      "trailTime":[
        {
          "interval":"2012-03-15T10:00:00Z/2012-03-15T10:44:56.1031157730031Z",
          "epoch":"2012-03-15T10:00:00Z",
          "number":[
            0,0,
            5537.546684141998,5537.546684141998
          ]
        },
        {
          "interval":"2012-03-15T10:44:56.1031157730031Z/2012-03-15T12:17:13.6497999150015Z",
          "epoch":"2012-03-15T10:44:56.1031157730031Z",
          "number":[
            0,0,
            5537.546684141998,5537.546684141998
          ]
        },
        //省略一些数据
         ]
    },
    "position":{
      "interpolationAlgorithm":"LAGRANGE",
      "interpolationDegree":5,
      "referenceFrame":"INERTIAL",
      "epoch":"2012-03-15T10:00:00Z",
      "cartesian":[
        0,3849424.41859634,5535808.90838488,-469609.955032837,
        300,2403397.25163735,5923118.10887596,-2208538.08732886,
        600,681059.355577534,5629683.78882362,-3693007.85438243,
        86400,-1408522.57228522,-5607125.68800775,3522147.91298588
      ]
    }
  },

{
    "id":"Satellite/Molniya_1-92",
    "name":"Molniya_1-92",
    "availability":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
    "description":"<!--HTML-->\r\n<p>Molniya, meaning \"lightning\", was a military communications satellite system used by the Soviet Union. The satellites were placed into highly eccentric elliptical orbits known as Molniya orbits, characterised by an inclination of +63.4 degrees and a period of around 12 hours. Such orbits allowed them to remain visible to sites in polar regions for extended periods, unlike geostationary satellites in geosynchronous orbits with a 24-hour orbital period.\r\nThe Molniya program was authorized by a government decree in late 1960. After some initial failures in 1964, the first operational satellite, Molniya 1-01, was successfully launched on April 23, 1965.\r\nSince October 1967, Molniya satellites have been used by Russia to broadcast their national Orbita television network.</p>",
    "billboard":{
      "eyeOffset":{
        "cartesian":[
          0,0,0
        ]
      },
      "horizontalOrigin":"CENTER",
      "image":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADJSURBVDhPnZHRDcMgEEMZjVEYpaNklIzSEfLfD4qNnXAJSFWfhO7w2Zc0Tf9QG2rXrEzSUeZLOGm47WoH95x3Hl3jEgilvDgsOQUTqsNl68ezEwn1vae6lceSEEYvvWNT/Rxc4CXQNGadho1NXoJ+9iaqc2xi2xbt23PJCDIB6TQjOC6Bho/sDy3fBQT8PrVhibU7yBFcEPaRxOoeTwbwByCOYf9VGp1BYI1BA+EeHhmfzKbBoJEQwn1yzUZtyspIQUha85MpkNIXB7GizqDEECsAAAAASUVORK5CYII=",
      "pixelOffset":{
        "cartesian2":[
          0,0
        ]
      },
      "scale":1,
      "show":true,
      "verticalOrigin":"CENTER"
    },
    "label":{
      "fillColor":{
        "rgba":[
          255,255,0,255
        ]
      },
      "font":"11pt Lucida Console",
      "horizontalOrigin":"LEFT",
      "outlineColor":{
        "rgba":[
          0,0,0,255
        ]
      },
      "outlineWidth":2,
      "pixelOffset":{
        "cartesian2":[
          6,-4
        ]
      },
      "show":true,
      "style":"FILL_AND_OUTLINE",
      "text":"Molniya 1-92",
      "verticalOrigin":"CENTER"
    },
    "path":{
      "show":[
        {
          "interval":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
          "boolean":true
        }
      ],
      "width":1,
      "material":{
        "solidColor":{
          "color":{
            "rgba":[
              255,255,0,255
            ]
          }
        }
      },
      "resolution":120,
      "leadTime":[
        {
          "interval":"2012-03-15T10:00:00Z/2012-03-15T13:11:42.0607217289944Z",
          "epoch":"2012-03-15T10:00:00Z",
          "number":[
            0,43058.246637085,
            43058.246637085,0
          ]
        },
        {
          "interval":"2012-03-15T13:11:42.0607217289944Z/2012-03-15T22:02:21.7533629149984Z",
          "epoch":"2012-03-15T13:11:42.0607217289944Z",
          "number":[
            0,43058.246637085,
            43058.246637085,0
          ]
        },
        {
          "interval":"2012-03-15T22:02:21.7533629149984Z/2012-03-16T10:00:00Z",
          "epoch":"2012-03-15T22:02:21.7533629149984Z",
          "number":[
            0,43058.246637085,
            43058.246637085,0
          ]
        }
      ],
      "trailTime":[
        {
          "interval":"2012-03-15T10:00:00Z/2012-03-15T13:11:42.0607217289944Z",
          "epoch":"2012-03-15T10:00:00Z",
          "number":[
            0,0,
            43058.246637085,43058.246637085
          ]
        },
        {
          "interval":"2012-03-15T13:11:42.0607217289944Z/2012-03-15T22:02:21.7533629149984Z",
          "epoch":"2012-03-15T13:11:42.0607217289944Z",
          "number":[
            0,0,
            43058.246637085,43058.246637085
          ]
        },
        {
          "interval":"2012-03-15T22:02:21.7533629149984Z/2012-03-16T10:00:00Z",
          "epoch":"2012-03-15T22:02:21.7533629149984Z",
          "number":[
            0,0,
            43058.246637085,43058.246637085
          ]
        }
      ]
    },
    "position":{
      "interpolationAlgorithm":"LAGRANGE",
      "interpolationDegree":5,
      "referenceFrame":"INERTIAL",
      "epoch":"2012-03-15T10:00:00Z",
      "cartesian":[
        0,-14516939.0194339,-3368384.25750661,30226792.3721741,
        300,-14236743.3163964,-3919702.51855093,29582289.9003049,
        600,-13942424.1139376,-4467129.26191977,28908421.5359637,
        900,-13633412.071181,-5009844.58444676,28204070.1821176,
        1200,-13309088.3113149,-5546928.47070653,27468024.4389541,
        1500,-12968778.4476262,-6077343.65350594,26698967.7350563,
        1800,-12611745.6836145,-6599914.79272114,25895465.8760734,
        2100,-12237182.8194807,-7113302.99915085,25055952.7547651,
        86400,-14264211.3581917,-3842236.93397723,29623325.1797918
      ]
    }
  }
]

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值