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

📄 daolu.java

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

import java.io.File;
import net.aetherial.gis.our.FrameOur;
import java.io.*;
import net.aetherial.gis.surface.ItemValue;
import net.aetherial.gis.our.allauto.create.CreateDirect;
import net.aetherial.gis.our.allauto.create.ToStatistic;
import net.aetherial.gis.our.allauto.create.ToCheck;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public abstract class Daolu  extends File{

  protected FrameOur fo = null;
  protected CreateDirect cd = null;
  protected double[] licheng = null;
  protected long xzcCount = 0;
  public Daolu(String inputPath) {
    super(inputPath);
  }

  public Daolu(File inputFile) {
    super(inputFile.getAbsolutePath());
  }
  /**
   * 设置
   */
  public void setFrameOur(FrameOur fo) {
    this.fo = fo;
  }
  public void setCreateDirect(CreateDirect cd){
    this.cd = cd;
  }
  /**
   * 输出打印的信息
   */
  protected void println(String message) {
    ItemValue.setRunAllMessage(message);
  }
  /**
   * 得到里程
   */
  public double[] getLicheng(){
    return this.licheng;
  }
  /**
   * 得到行政村数目
   */
  public long getXZCCount(){
    return this.xzcCount;
  }

  /**
   * 生成shp文件
   */
  public abstract void createPickUpFile();
  /**
   * 生成shp文件
   */
  public abstract void createSHP();
  /**
   * 生成Excel文件
   */
  public abstract void createExcel();
  /**
     * 生成统计文件文件
     */
  public void createStatistic(){
    ToStatistic ts = new ToStatistic();
    this.println("正在生成统计数据....");
    this.xzcCount = ts.countXZC(getEndWithSlash(this.getAbsolutePath()),this.fo);
    this.licheng = ts.getLicheng(getEndWithSlash(this.getAbsolutePath()),this.fo);
  }
  public String createCheck(){
    ToCheck tc = new ToCheck();
    this.println("正在检查航迹是否重复....");
    return tc.checkRepeateTrks(this.fo,getEndWithSlash(this.getAbsolutePath()));
  }

  /**
   * 得到后面有斜杠的字符串。
   */
  protected String getEndWithSlash(String directory){
    if ((directory.endsWith("\\"))||(directory.endsWith("/"))) {
      return directory;
    }else{
      return directory + "\\";
    }
  }
}

⌨️ 快捷键说明

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