CAD库中统计PBN运行航路条数和总距离

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CAD库中统计PBN运行航路条数和总距离相关的知识,希望对你有一定的参考价值。

select ‘PBN运行航路‘ 类型, fb.b 总条数, fa.a 总距离 from
                (
                select sum(s)  a  from (
                            select distinct f4.airway_point1,f4.airway_point2, f4.kilometer_distance S  from airway f1, airway_segment_point f2,airway_segment_point f3, segment f4
                            where
                            f1.chart_type_id=3 and
                            f1.airway_id =f2.airway_id and
                            f1.airway_id =f3.airway_id and
                            f2.airway_seq=f3.airway_seq-1 and
                            (
                            (f2.airway_point_id =f4.airway_point1 and f3.airway_point_id =f4.airway_point2) or
                            (f2.airway_point_id =f4.airway_point2 and f3.airway_point_id =f4.airway_point1)
                            ) and f1.airway_rnp is not null
                            )  tm
                )  fa
                left join
                (select  count(*) b from airway where airway_rnp is not null and chart_type_id=3 )   fb
                on 1=1

 

纯PBN代号航路

select ‘PBN代号航路‘ 类型, fb.b 总条数, fa.a 总距离 from
                (
                select sum(s)  a  from (
                            select distinct f4.airway_point1,f4.airway_point2, f4.kilometer_distance S  from airway f1, airway_segment_point f2,airway_segment_point f3, segment f4
                            where
                            f1.chart_type_id=3 and
                            f1.airway_id =f2.airway_id and
                            f1.airway_id =f3.airway_id and
                            f2.airway_seq=f3.airway_seq-1 and
                            (
                            (f2.airway_point_id =f4.airway_point1 and f3.airway_point_id =f4.airway_point2) or
                            (f2.airway_point_id =f4.airway_point2 and f3.airway_point_id =f4.airway_point1)
                            ) and f1.airway_type_id in (2,5,8)
                            )  tm
                )  fa
                left join
                (select  count(*) b from airway where airway_type_id in (2,5,8) and chart_type_id=3 )   fb
                on 1=1
               

以上是关于CAD库中统计PBN运行航路条数和总距离的主要内容,如果未能解决你的问题,请参考以下文章

cad怎么一下测多个点之间的距离

如何快速测量CAD图纸中的距离面积

java中统计JTextArea中的行数有两个方法的问题!

cad怎么量距离,cad中的距离应当如何来测量?

cad如何测距离

Spark中统计程序运行时间