⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 totable.java

📁 基于Java的地图数据管理软件。使用MySQL数据库管理系统。
💻 JAVA
字号:
package net.aetherial.gis.output.toTable;

import net.aetherial.gis.jiaotongbu.outputJTB.txtOutput.work.Work;
import net.aetherial.gis.our.FrameOur;
import java.io.File;
import net.aetherial.gis.jiaotongbu.outputJTB.txtOutput.module.colligate.Adder;
import net.aetherial.gis.jiaotongbu.outputJTB.txtOutput.module.colligate.Luduan;
import net.aetherial.gis.jiaotongbu.outputJTB.txtOutput.work.ResetValue;
import net.aetherial.gis.surface.ItemValue;
import java.util.Enumeration;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class ToTable
    extends Work {
  private String xianName = "";
  public ToTable(String baseDir, String shi, String xian) {
    super(baseDir, shi, xian);
    this.xianName = xian;
  }

  public void proccess() {
    this.checkPath();
    if (isError) {
      return;
    }

    readGPSFile();

    try {
      fillJZC();
    }
    catch (Exception ex) {
      ex.printStackTrace();
    }
    createTableXiangzhen();
    //createTableJianzhicunJB();
    createLuxian();
    this.deleteExceptXiandaoXiangdaodao();
    createLuDuan();
    this.createLuDuanQuery();
//    createQSD();
//    createTableXiangzhenTD();
//    createTableJianzhicunTD();

    clearGPSRead();
    ResetValue.resetValue();

  }

  protected void checkPath() {
    if (! (this.scanGPS.check())) {
      super.error(this.scanGPS.getErrorString());
    }
    this.scanGPS.removeAllCunDaoFile();
  }

  private void deleteExceptXiandaoXiangdaodao() {
    Enumeration keys = ItemValue.namedTracks.keys();
    while (keys.hasMoreElements()) {
      String key = (String) keys.nextElement();
      if (key.indexOf("[村道]") != -1) {
        ItemValue.namedTracks.remove(key);
      }
    }
  }

  /**
   * 生成路段信息
   */
  void createLuDuanQuery() {
    FillRow row = new FillRow(this.xianName);
    row.setAdder( (new Adder(this.pathBubao[5])).getReadAdder());
    row.getGPSLXData();
    File xinxi = new File( (new File(pathOut)).getParentFile().getAbsolutePath() +
                          "年报核对表\\程序输出信息\\");
    xinxi.mkdir();

    row.save(new File(xinxi.getAbsolutePath() + "\\" + "1_路段比较信息.txt"));
  }

  public static void main(String[] args) {
    if (args.length < 3) {
      System.out.println("参数太少,无法运算!");
    }

    ToTable work = null;
    try {
      FrameOur fo = new FrameOur();

      work = new ToTable(args[2], args[0], args[1]);
//      work = new ToTable("D:\\数据备份\\报部数据\\安徽省\\合肥市\\肥西县\\", "合肥市", "肥西县");
//      java net....ToTable 安庆市 岳西县 D:\数据备份\报部数据\安徽省\安庆市\岳西县\岳西县\
      work.setFrameOur(fo);

      work.proccess();
    }
    catch (Exception ex) {
      ex.printStackTrace();
    }

    System.exit(0);

  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -