• ArcEngine 10 网络分析


    本文介绍ArcEngine JAVA API的网络分析功能,.NET版本代码基本一致

    1.首先打开网路数据集

     1 IWorkspaceFactory workspaceFactory = new FileGDBWorkspaceFactory();
     2 IFeatureWorkspace featureWorkspace = new IFeatureWorkspaceProxy(workspaceFactory.openFromFile(workspacePath, 0));
     3 
     4 IFeatureDataset featureDataset = featureWorkspace.openFeatureDataset(networkDatasetFeatureDataset);
     5 IFeatureDatasetExtensionContainer fdsExtCont = new IFeatureDatasetExtensionContainerProxy(featureDataset);
     6 IFeatureDatasetExtension fdsExt = fdsExtCont.findExtension(esriDatasetType.esriDTNetworkDataset);
     7 IDatasetContainer2 dsCont = new IDatasetContainer2Proxy(fdsExt);
     8 
     9 IDataset dataset = dsCont.getDatasetByName(esriDatasetType.esriDTNetworkDataset, networkDatasetName);
    10 NetworkDataset networkDataset = new NetworkDataset(dataset);

    2.创建网络分析上下文文INAContext

     1 private INAContext createRouteAnalysisContext(String layerName, NetworkDataset networkDataset)
     2     {
     3         NAContext naContext = null;
     4         try
     5         {
     6             NARouteSolver naRouteSolver = new NARouteSolver();
     7 
     8             DENetworkDataset deNetworkDataset = (DENetworkDataset) networkDataset.getDataElement();
     9 
    10             naContext = (NAContext) naRouteSolver.createContext(deNetworkDataset, layerName);
    11             naContext.bind(networkDataset, new GPMessages());
    12 
    13             naRouteSolver.setFindBestSequence(true);
    14        naRouteSolver.setPreserveFirstStop(true);
    15        naRouteSolver.setPreserveLastStop(false);
    16        naRouteSolver.setUseTimeWindows(false);
    17             naRouteSolver.setOutputLines(esriNAOutputLineType.esriNAOutputLineTrueShapeWithMeasure);
    18 
    19        IStringArray restrictions = naRouteSolver.getRestrictionAttributeNames();
    20             naRouteSolver.setRestrictionAttributeNamesByRef(restrictions); 
    22 
    22         naRouteSolver.updateContext(naContext, deNetworkDataset, new GPMessages());
    23         }
    24         catch (Exception e)
    25         {
    26             e.printStackTrace();
    27         }
    28         return naContext;
    29     }

    3.设置路由站点

     1 INAClass stopsNAClass = (INAClass) naContext.getNAClasses().getItemByName("Stops");
     2 
     3 //加载站点,设置字段映射
     4 INAClassFieldMap naClassFieldMap = new NAClassFieldMap();
     5 naClassFieldMap.setMappedField("Name", shapeInputNameField);
     6 
     7 INAClassLoader naLoader = new NAClassLoader();
     8 naLoader.setLocatorByRef(naContext.getLocator());
     9 naLoader.setNAClassByRef(stopsNAClass);
    10 naLoader.setFieldMapByRef(naClassFieldMap);
    11 
    12 int[] rowsInCursor = { 0 };
    13 int[] rowsLocated = { 0 };
    14 ITrackCancel cancelTracker = new CancelTracker();
    15 FeatureCursor cursor = new FeatureCursor(inputStopsFClass.search(new QueryFilter(), false));
    16 naLoader.load(cursor, cancelTracker, rowsInCursor, rowsLocated);

    4.执行网络分析,解析路径分析结果

     1 INASolver naSolver = naContext.getSolver();
     2 naSolver.solve(naContext, new GPMessages(), cancelTracker)
     3 
     4 //获取路径结果
     5 INAStreetDirectionsAgent2 streetAgent = (INAStreetDirectionsAgent2) naContext.getAgents().getItemByName("StreetDirectionsAgent");
     6 //设置处理结果为中文
     7 streetAgent.setLanguage("zh-CN");
     8 streetAgent.execute(null, null);
     9 
    10 INAStreetDirectionsContainer directionsContainer = streetAgent.getDirectionsContainer();
    11 directionsContainer.saveAsXML("d:\\route.xml");

    5.分析的结果保存为XML示例为

    <?xml version="1.0"?>
    <NA:DIRECTIONS version="1.0" xmlns:NA="http://www.esri.com/arcgis/directions" xmlns="http://www.esri.com/arcgis/directions">
      <ROUTE id="1" name="川西北气矿甲醇厂 - 川西北气矿净化厂">
        <PATH id="1" fromStop="川西北气矿甲醇厂" toStop="川西北气矿甲醇厂">
          <DIRECTION id="1" distance="0.000000" cumul_length="0.000000" time="0.000000" drivetime="0.000000" turn_angle="0.000000" depart_bearing="0.000000" general_bearing="0.000000" maneuvertype="depart">
            <ENVELOPE minx="104.692130" miny="31.766075" maxx="104.692130" maxy="31.766075"/>
            <POINT name="maneuver" x="104.692130" y="31.766075"/>
            <STRINGS>
              <STRING style="depart" text="从 川西北气矿甲醇厂 出发"/>
              <STRING style="Cumul_length" text="0 m"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="2" distance="277.561284" cumul_length="0.000000" time="0.000000" drivetime="0.000000" turn_angle="0.000000" depart_bearing="0.000000" general_bearing="213.745206" maneuvertype="straight">
            <ENVELOPE minx="104.690664" miny="31.763881" maxx="104.692130" maxy="31.766075"/>
            <POINT name="maneuver" x="104.692130" y="31.766075"/>
            <STRINGS>
              <STRING style="normal" text=" 沿 西屏乡-江油市 向西南 行驶"/>
              <STRING style="Cumul_length" text="0 m"/>
              <STRING style="summary" text="行驶 277.6 m"/>
              <STRING style="length" text="277.6 m"/>
              <STRING style="street_name" text="西屏乡-江油市"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="3" distance="994.643352" cumul_length="277.561284" time="0.000000" drivetime="0.000000" turn_angle="283.046992" depart_bearing="130.601761" general_bearing="114.268040" maneuvertype="turn_left">
            <ENVELOPE minx="104.690664" miny="31.759696" maxx="104.698430" maxy="31.763881"/>
            <POINT name="maneuver" x="104.690664" y="31.763881"/>
            <STRINGS>
              <STRING style="normal" text="左转 沿 西屏乡-江油市 行驶 "/>
              <STRING style="Cumul_length" text="277.6 m"/>
              <STRING style="summary" text="行驶 994.6 m"/>
              <STRING style="length" text="994.6 m"/>
              <STRING style="street_name" text="西屏乡-江油市"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="4" distance="2529.293066" cumul_length="1272.204635" time="0.000000" drivetime="0.000000" turn_angle="138.996203" depart_bearing="160.024218" general_bearing="158.942196" maneuvertype="turn_right">
            <ENVELOPE minx="104.698430" miny="31.740015" maxx="104.706271" maxy="31.760380"/>
            <POINT name="maneuver" x="104.698430" y="31.760380"/>
            <STRINGS>
              <STRING style="normal" text="右转 沿 西屏乡-江油市 行驶 "/>
              <STRING style="Cumul_length" text="1272.2 m"/>
              <STRING style="summary" text="行驶 2529.3 m"/>
              <STRING style="length" text="2529.3 m"/>
              <STRING style="street_name" text="西屏乡-江油市"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="5" distance="3333.495901" cumul_length="3801.497701" time="0.000000" drivetime="0.000000" turn_angle="250.609815" depart_bearing="26.234105" general_bearing="30.203521" maneuvertype="sharp_left">
            <ENVELOPE minx="104.706271" miny="31.740015" maxx="104.721709" maxy="31.766536"/>
            <POINT name="maneuver" x="104.706271" y="31.740015"/>
            <STRINGS>
              <STRING style="normal" text="左后转弯 沿 九(寨沟县)-遂(宁) 行驶 "/>
              <STRING style="Cumul_length" text="3801.5 m"/>
              <STRING style="summary" text="行驶 3333.5 m"/>
              <STRING style="length" text="3333.5 m"/>
              <STRING style="street_name" text="九(寨沟县)-遂(宁)"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="6" distance="1143.422336" cumul_length="7134.993602" time="0.000000" drivetime="0.000000" turn_angle="76.584252" depart_bearing="83.782182" general_bearing="84.799379" maneuvertype="turn_right">
            <ENVELOPE minx="104.721709" miny="31.766536" maxx="104.733677" maxy="31.767625"/>
            <POINT name="maneuver" x="104.721709" y="31.766536"/>
            <STRINGS>
              <STRING style="normal" text="右转 行驶 "/>
              <STRING style="Cumul_length" text="7135 m"/>
              <STRING style="summary" text="行驶 1143.4 m"/>
              <STRING style="length" text="1143.4 m"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="7" distance="122.369918" cumul_length="8278.415938" time="0.000000" drivetime="0.000000" turn_angle="359.991261" depart_bearing="89.052818" general_bearing="89.055296" maneuvertype="straight">
            <ENVELOPE minx="104.733677" miny="31.767625" maxx="104.734968" maxy="31.767647"/>
            <POINT name="maneuver" x="104.733677" y="31.767625"/>
            <STRINGS>
              <STRING style="normal" text="继续 沿 大河坝街 行驶 "/>
              <STRING style="Cumul_length" text="8278.5 m"/>
              <STRING style="summary" text="行驶 122.4 m"/>
              <STRING style="length" text="122.4 m"/>
              <STRING style="street_name" text="大河坝街"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="8" distance="15.912953" cumul_length="8400.785856" time="0.000000" drivetime="0.000000" turn_angle="267.301038" depart_bearing="356.424263" general_bearing="356.350894" maneuvertype="turn_left">
            <ENVELOPE minx="104.734959" miny="31.767647" maxx="104.734968" maxy="31.767790"/>
            <POINT name="maneuver" x="104.734968" y="31.767647"/>
            <STRINGS>
              <STRING style="normal" text="左转 行驶 "/>
              <STRING style="Cumul_length" text="8400.8 m"/>
              <STRING style="summary" text="行驶 15.9 m"/>
              <STRING style="length" text="15.9 m"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="9" distance="69.857605" cumul_length="8416.698809" time="0.000000" drivetime="0.000000" turn_angle="66.437925" depart_bearing="62.754825" general_bearing="64.378359" maneuvertype="turn_right">
            <ENVELOPE minx="104.734959" miny="31.767790" maxx="104.735594" maxy="31.768095"/>
            <POINT name="maneuver" x="104.734959" y="31.767790"/>
            <STRINGS>
              <STRING style="normal" text="右转 沿 油房街 行驶 "/>
              <STRING style="Cumul_length" text="8416.8 m"/>
              <STRING style="summary" text="行驶 69.9 m"/>
              <STRING style="length" text="69.9 m"/>
              <STRING style="street_name" text="油房街"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="10" distance="0.000000" cumul_length="8486.556414" time="0.000000" drivetime="0.000000" turn_angle="0.000000" depart_bearing="64.859507" general_bearing="0.000000" maneuvertype="stop">
            <ENVELOPE minx="104.735594" miny="31.768095" maxx="104.735594" maxy="31.768095"/>
            <POINT name="maneuver" x="104.735594" y="31.768095"/>
            <STRINGS>
              <STRING style="arrive" text="从 右侧 到达 川西北气矿甲醇厂"/>
              <STRING style="Cumul_length" text="8486.6 m"/>
            </STRINGS>
          </DIRECTION>
        </PATH>
        <PATH id="2" fromStop="川西北气矿甲醇厂" toStop="川西北气矿净化厂">
          <DIRECTION id="11" distance="0.000000" cumul_length="8486.556414" time="0.000000" drivetime="0.000000" turn_angle="0.000000" depart_bearing="64.859507" general_bearing="0.000000" maneuvertype="depart">
            <ENVELOPE minx="104.735594" miny="31.768095" maxx="104.735594" maxy="31.768095"/>
            <POINT name="maneuver" x="104.735594" y="31.768095"/>
            <STRINGS>
              <STRING style="depart" text="驶离 川西北气矿甲醇厂"/>
              <STRING style="Cumul_length" text="8486.6 m"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="12" distance="270.947197" cumul_length="8486.556414" time="0.000000" drivetime="0.000000" turn_angle="0.000000" depart_bearing="64.859507" general_bearing="59.310045" maneuvertype="straight">
            <ENVELOPE minx="104.735594" miny="31.768095" maxx="104.737908" maxy="31.769468"/>
            <POINT name="maneuver" x="104.735594" y="31.768095"/>
            <STRINGS>
              <STRING style="normal" text="继续 沿 油房街 向东北 行驶"/>
              <STRING style="Cumul_length" text="8486.6 m"/>
              <STRING style="summary" text="行驶 270.9 m"/>
              <STRING style="length" text="270.9 m"/>
              <STRING style="street_name" text="油房街"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="13" distance="276.271193" cumul_length="8757.503611" time="0.000000" drivetime="0.000000" turn_angle="0.010416" depart_bearing="67.654994" general_bearing="44.642576" maneuvertype="straight">
            <ENVELOPE minx="104.737908" miny="31.769468" maxx="104.739745" maxy="31.771328"/>
            <POINT name="maneuver" x="104.737908" y="31.769468"/>
            <STRINGS>
              <STRING style="normal" text="继续 沿 涪利街 行驶 "/>
              <STRING style="Cumul_length" text="8757.6 m"/>
              <STRING style="summary" text="行驶 276.3 m"/>
              <STRING style="length" text="276.3 m"/>
              <STRING style="street_name" text="涪利街"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="14" distance="112.481130" cumul_length="9033.774805" time="0.000000" drivetime="0.000000" turn_angle="8.259226" depart_bearing="40.609550" general_bearing="57.729878" maneuvertype="straight">
            <ENVELOPE minx="104.739745" miny="31.771328" maxx="104.740690" maxy="31.771925"/>
            <POINT name="maneuver" x="104.739745" y="31.771328"/>
            <STRINGS>
              <STRING style="normal" text="继续 行驶 "/>
              <STRING style="Cumul_length" text="9033.8 m"/>
              <STRING style="summary" text="行驶 112.5 m"/>
              <STRING style="length" text="112.5 m"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="15" distance="321.563344" cumul_length="9146.255934" time="0.000000" drivetime="0.000000" turn_angle="48.168359" depart_bearing="98.224103" general_bearing="82.281751" maneuvertype="turn_right">
            <ENVELOPE minx="104.740690" miny="31.771776" maxx="104.743950" maxy="31.772366"/>
            <POINT name="maneuver" x="104.740690" y="31.771925"/>
            <STRINGS>
              <STRING style="normal" text="右转 沿 南街 行驶 "/>
              <STRING style="Cumul_length" text="9146.3 m"/>
              <STRING style="summary" text="行驶 321.6 m"/>
              <STRING style="length" text="321.6 m"/>
              <STRING style="street_name" text="南街"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="16" distance="107.480835" cumul_length="9467.819278" time="0.000000" drivetime="0.000000" turn_angle="42.531492" depart_bearing="132.419614" general_bearing="135.140156" maneuvertype="bear_right">
            <ENVELOPE minx="104.743950" miny="31.771628" maxx="104.744685" maxy="31.772366"/>
            <POINT name="maneuver" x="104.743950" y="31.772366"/>
            <STRINGS>
              <STRING style="normal" text="向右前方 沿 东大街 行驶 "/>
              <STRING style="Cumul_length" text="9467.9 m"/>
              <STRING style="summary" text="行驶 107.5 m"/>
              <STRING style="length" text="107.5 m"/>
              <STRING style="street_name" text="东大街"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="17" distance="394.803390" cumul_length="9575.300113" time="0.000000" drivetime="0.000000" turn_angle="359.992755" depart_bearing="135.614502" general_bearing="136.829207" maneuvertype="straight">
            <ENVELOPE minx="104.744685" miny="31.768851" maxx="104.747290" maxy="31.771628"/>
            <POINT name="maneuver" x="104.744685" y="31.771628"/>
            <STRINGS>
              <STRING style="normal" text="继续 沿 江油市-绵阳市 行驶 "/>
              <STRING style="Cumul_length" text="9575.4 m"/>
              <STRING style="summary" text="行驶 394.8 m"/>
              <STRING style="length" text="394.8 m"/>
              <STRING style="street_name" text="江油市-绵阳市"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="18" distance="172.789986" cumul_length="9970.103503" time="0.000000" drivetime="0.000000" turn_angle="276.680384" depart_bearing="48.372536" general_bearing="48.372536" maneuvertype="turn_left">
            <ENVELOPE minx="104.747290" miny="31.768851" maxx="104.748554" maxy="31.769974"/>
            <POINT name="maneuver" x="104.747290" y="31.768851"/>
            <STRINGS>
              <STRING style="normal" text="左转 沿 江油市-绵阳市 行驶 "/>
              <STRING style="Cumul_length" text="9970.2 m"/>
              <STRING style="summary" text="行驶 172.8 m"/>
              <STRING style="length" text="172.8 m"/>
              <STRING style="street_name" text="江油市-绵阳市"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="19" distance="144.726327" cumul_length="10142.893489" time="0.000000" drivetime="0.000000" turn_angle="71.811684" depart_bearing="120.184220" general_bearing="119.198022" maneuvertype="turn_right">
            <ENVELOPE minx="104.748554" miny="31.769260" maxx="104.749832" maxy="31.769974"/>
            <POINT name="maneuver" x="104.748554" y="31.769974"/>
            <STRINGS>
              <STRING style="normal" text="右转 沿 江油市-绵阳市 行驶 "/>
              <STRING style="Cumul_length" text="10143 m"/>
              <STRING style="summary" text="行驶 144.7 m"/>
              <STRING style="length" text="144.7 m"/>
              <STRING style="street_name" text="江油市-绵阳市"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="20" distance="540.890161" cumul_length="10287.619816" time="0.000000" drivetime="0.000000" turn_angle="358.238478" depart_bearing="116.577965" general_bearing="116.130694" maneuvertype="straight">
            <ENVELOPE minx="104.749832" miny="31.766831" maxx="104.754784" maxy="31.769260"/>
            <POINT name="maneuver" x="104.749832" y="31.769260"/>
            <STRINGS>
              <STRING style="normal" text="继续 行驶 "/>
              <STRING style="Cumul_length" text="10287.7 m"/>
              <STRING style="summary" text="行驶 540.9 m"/>
              <STRING style="length" text="540.9 m"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="21" distance="434.526561" cumul_length="10828.509977" time="0.000000" drivetime="0.000000" turn_angle="279.973362" depart_bearing="36.081244" general_bearing="33.564350" maneuvertype="turn_left">
            <ENVELOPE minx="104.754784" miny="31.766831" maxx="104.757045" maxy="31.770240"/>
            <POINT name="maneuver" x="104.754784" y="31.766831"/>
            <STRINGS>
              <STRING style="normal" text="左转 行驶 "/>
              <STRING style="Cumul_length" text="10828.6 m"/>
              <STRING style="summary" text="行驶 434.5 m"/>
              <STRING style="length" text="434.5 m"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="22" distance="2403.060773" cumul_length="11263.036538" time="0.000000" drivetime="0.000000" turn_angle="76.907776" depart_bearing="110.470641" general_bearing="88.473449" maneuvertype="turn_right">
            <ENVELOPE minx="104.757045" miny="31.769148" maxx="104.778246" maxy="31.773458"/>
            <POINT name="maneuver" x="104.757045" y="31.770240"/>
            <STRINGS>
              <STRING style="normal" text="右转 行驶 "/>
              <STRING style="Cumul_length" text="11263.1 m"/>
              <STRING style="summary" text="行驶 2403.1 m"/>
              <STRING style="length" text="2403.1 m"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="23" distance="1797.017769" cumul_length="13666.097311" time="0.000000" drivetime="0.000000" turn_angle="89.621866" depart_bearing="185.412812" general_bearing="111.436093" maneuvertype="turn_right">
            <ENVELOPE minx="104.778212" miny="31.764623" maxx="104.793989" maxy="31.770805"/>
            <POINT name="maneuver" x="104.778246" y="31.770805"/>
            <STRINGS>
              <STRING style="normal" text="右转 行驶 "/>
              <STRING style="Cumul_length" text="13666.2 m"/>
              <STRING style="summary" text="行驶 1797 m"/>
              <STRING style="length" text="1797 m"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="24" distance="42.066571" cumul_length="15463.115080" time="0.000000" drivetime="0.000000" turn_angle="79.377115" depart_bearing="179.842725" general_bearing="183.308492" maneuvertype="turn_right">
            <ENVELOPE minx="104.793967" miny="31.764245" maxx="104.793990" maxy="31.764623"/>
            <POINT name="maneuver" x="104.793989" y="31.764623"/>
            <STRINGS>
              <STRING style="normal" text="右转 行驶 "/>
              <STRING style="Cumul_length" text="15463.2 m"/>
              <STRING style="summary" text="行驶 42.1 m"/>
              <STRING style="length" text="42.1 m"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="25" distance="2006.129375" cumul_length="15505.181651" time="0.000000" drivetime="0.000000" turn_angle="273.048964" depart_bearing="98.670958" general_bearing="119.558606" maneuvertype="turn_left">
            <ENVELOPE minx="104.793967" miny="31.754784" maxx="104.810196" maxy="31.764465"/>
            <POINT name="maneuver" x="104.793967" y="31.764245"/>
            <STRINGS>
              <STRING style="normal" text="左转 行驶 "/>
              <STRING style="Cumul_length" text="15505.3 m"/>
              <STRING style="summary" text="行驶 2006.1 m"/>
              <STRING style="length" text="2006.1 m"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="26" distance="4750.983764" cumul_length="17511.311026" time="0.000000" drivetime="0.000000" turn_angle="47.097692" depart_bearing="98.574444" general_bearing="132.171576" maneuvertype="bear_right">
            <ENVELOPE minx="104.810196" miny="31.730427" maxx="104.837369" maxy="31.756157"/>
            <POINT name="maneuver" x="104.810196" y="31.755041"/>
            <STRINGS>
              <STRING style="normal" text="向右前方 行驶 "/>
              <STRING style="Cumul_length" text="17511.4 m"/>
              <STRING style="summary" text="行驶 4751 m"/>
              <STRING style="length" text="4751 m"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="27" distance="962.704550" cumul_length="22262.294789" time="0.000000" drivetime="0.000000" turn_angle="224.985768" depart_bearing="340.673032" general_bearing="60.988129" maneuvertype="sharp_left">
            <ENVELOPE minx="104.837309" miny="31.730427" maxx="104.844017" maxy="31.734114"/>
            <POINT name="maneuver" x="104.837369" y="31.730427"/>
            <STRINGS>
              <STRING style="normal" text="左后转弯 行驶 "/>
              <STRING style="Cumul_length" text="22262.4 m"/>
              <STRING style="summary" text="行驶 962.7 m"/>
              <STRING style="length" text="962.7 m"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="28" distance="0.000000" cumul_length="23224.999339" time="0.000000" drivetime="0.000000" turn_angle="0.000000" depart_bearing="0.000000" general_bearing="0.000000" maneuvertype="stop">
            <ENVELOPE minx="104.844017" miny="31.734114" maxx="104.844017" maxy="31.734114"/>
            <POINT name="maneuver" x="104.844017" y="31.734114"/>
            <STRINGS>
              <STRING style="arrive" text="从 右侧 到达 川西北气矿净化厂"/>
              <STRING style="Cumul_length" text="23225.1 m"/>
            </STRINGS>
          </DIRECTION>
        </PATH>
        <PATH id="3" fromStop="川西北气矿净化厂" toStop="川西北气矿净化厂">
          <DIRECTION id="29" distance="0.000000" cumul_length="23224.999339" time="0.000000" drivetime="0.000000" turn_angle="0.000000" depart_bearing="0.000000" general_bearing="0.000000" maneuvertype="depart">
            <ENVELOPE minx="104.844017" miny="31.734114" maxx="104.844017" maxy="31.734114"/>
            <POINT name="maneuver" x="104.844017" y="31.734114"/>
            <STRINGS>
              <STRING style="depart" text="驶离 川西北气矿净化厂"/>
              <STRING style="Cumul_length" text="23225.1 m"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="30" distance="573.838343" cumul_length="23224.999339" time="0.000000" drivetime="0.000000" turn_angle="0.000000" depart_bearing="0.000000" general_bearing="64.136944" maneuvertype="straight">
            <ENVELOPE minx="104.844017" miny="31.733657" maxx="104.848330" maxy="31.736205"/>
            <POINT name="maneuver" x="104.844017" y="31.734114"/>
            <STRINGS>
              <STRING style="normal" text="继续 向东北 行驶"/>
              <STRING style="Cumul_length" text="23225.1 m"/>
              <STRING style="summary" text="行驶 573.8 m"/>
              <STRING style="length" text="573.8 m"/>
            </STRINGS>
          </DIRECTION>
          <DIRECTION id="31" distance="0.000000" cumul_length="23798.837683" time="0.000000" drivetime="0.000000" turn_angle="0.000000" depart_bearing="0.000000" general_bearing="0.000000" maneuvertype="stop">
            <ENVELOPE minx="104.848330" miny="31.736205" maxx="104.848330" maxy="31.736205"/>
            <POINT name="maneuver" x="104.848330" y="31.736205"/>
            <STRINGS>
              <STRING style="arrive" text="从 右侧  到达 川西北气矿净化厂"/>
              <STRING style="Cumul_length" text="23799 m"/>
            </STRINGS>
          </DIRECTION>
        </PATH>
        <DIRECTION id="summary" distance="23798.837683" cumul_length="23798.837683" time="0.000000" drivetime="0.000000" turn_angle="0.000000" depart_bearing="0.000000" general_bearing="0.000000" maneuvertype="unknown">
          <ENVELOPE minx="104.690664" miny="31.730427" maxx="104.848592" maxy="31.773458"/>
          <STRINGS>
            <STRING style="summary" text="行驶里程: 23799 m"/>
            <STRING style="length" text="23799 m"/>
            <STRING style="Cumul_length" text="23799 m"/>
          </STRINGS>
        </DIRECTION>
      </ROUTE>
    </NA:DIRECTIONS>
  • 相关阅读:
    分享一个文字转成语音的工具,视频配音神器
    生手linux服务器维护常用命令记录
    信不信?各种红包App最后都会整合游戏!App+游戏的变现模式分析
    一个玩游戏的失足青年,转行做游戏开发到教育的痛苦挣扎过程(4)
    免费送!CocosCreator 6.1超级大礼包!
    一个玩游戏的失足青年,转行做游戏开发到教育的痛苦挣扎过程(3)
    【激励视频组件】零编程,即拖即用,妈妈再也不用担心小游戏 SDK 接入了!
    惊天大案!80多款游戏源码被非法倒卖交换!波及数千余人涉案!
    小游戏开发运营挣钱模型之—游戏调优篇(1)
    有个事正在悄然发生,估计谁都无法逆转!只能积极拥抱
  • 原文地址:https://www.cnblogs.com/space/p/2789014.html
Copyright © 2020-2023  润新知