简体   繁体   English

有没有办法将铯实体配置为显示为 ICRF?

[英]Is there a way to configure Cesium entities to be displayed as ICRF?

My question is very similar to another one already solved .我的问题与另一个已经解决的问题非常相似。

I have to display a moving entity along with its path in ICRF.我必须在 ICRF 中显示移动实体及其路径。 I previously had it working using CZML.我以前使用 CZML 让它工作。 But now I am replacing the CZML objects to entities.但现在我将 CZML 对象替换为实体。 To configurate the entity's position I am using SampledPositionProperty and setting the reference frame in the constructor.为了配置实体的位置,我使用SampledPositionProperty并在构造函数中设置参考系。 The displayed result seems to be Earth fixed because the path looks like a spiral instead of an ellipse.显示的结果似乎是地球固定的,因为路径看起来像螺旋而不是椭圆。

new SampledPositionProperty(ReferenceFrame.INERTIAL);

The shape of the path comes from the coordinates passed into the SampledPositionProperty.路径的形状来自传入 SampledPositionProperty 的坐标。

You need to make sure the coordinates you're passing in have already been transformed into ICRF coordinates, forming an ellipse, not the Earth-fixed coordinates in the shape of a spiral.您需要确保您传入的坐标已经转换为 ICRF 坐标,形成一个椭圆,而不是螺旋形状的地球固定坐标。

Cesium will simply draw whatever shape you give it.铯会简单地绘制你给它的任何形状。 The choice of reference frame on the SampledPositionProperty constructor there only controls whether your shape will be fixed to the Earth, or aligned to the ICRF frame over time, but it doesn't change the actual shape. SampledPositionProperty 构造函数上参考系的选择仅控制您的形状是固定在地球上,还是随着时间的推移与 ICRF 框架对齐,但它不会改变实际形状。 So if you give it a spiral path, it will show you a spiral path.所以如果你给它一个螺旋路径,它会显示一个螺旋路径。 The conversion between coordinate systems is up to you (but can be done using Cesium helper functions, if needed).坐标系之间的转换取决于您(但如果需要,可以使用 Cesium 辅助函数来完成)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM