如何通过表达式定义高程属性?


MSCE-U17在表达式构造器中提供了可直接获取高程数据的方法:

同样的方法,我们还可以分别得到经纬度的数据:

Coordinates.GCS.GetLatitude(this.GetElement().Origin)
Coordinates.GCS.GetLongitude(this.GetElement().Origin)

上面是Point(点)的经纬度以及高程数据,还可以得到线段的相关数据:

Coordinates.GCS.GetLatitude(this.GetElement().Segments[0].Start)
Coordinates.GCS.GetLongitude(this.GetElement().Segments[0].Start)
Coordinates.GCS.GetElevation(this.GetElement().Segments[0].Start)