uniteallfile.java

来自「基于Java的地图数据管理软件。使用MySQL数据库管理系统。」· Java 代码 · 共 62 行

JAVA
62
字号
package net.aetherial.gis.our.auto.extend;


import net.aetherial.gis.surface.ItemValue;
import java.io.File;
import net.aetherial.gis.surface.CreateFile;
import net.aetherial.gis.our.FrameOur;
import net.aetherial.gis.our.auto.CutByRS;
import org.w3c.dom.Node;
import net.aetherial.gis.our.auto.Auto;
import net.aetherial.gis.dataType.WptType;
import net.aetherial.gis.our.ToShape;
/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class UniteAllFile extends Auto{
  private String directory ="";
  private String shpName = "auto";
  public UniteAllFile(FrameOur fo) {
    this.setFrameOur(fo);
  }
  public void getAllFile(){
    if (super.input == null) {
      System.out.println("super.input == null");
      return;
    }
    if (super.input.length == 0) {
      return;
    }
    for (int i = 0; i < this.input.length; i++) {
      this.open(this.input[i]);
      //this.print(this.input[i].getName() +
      //    "********************************************************");
      //this.scanThisFile();
      //this.setMemoryReset();
    }
    //this.saveMemory(this.directory + "合并之后的文件.gps");
    ToShape tf = new ToShape();
    tf.save(new File(this.directory+this.shpName+".gps"));
    this.setMemoryReset();
    this.msg("文件生成完毕!\r\n" + this.directory+this.shpName+".shp");
  }

  public void setSavedDirectory(String path){
    this.directory = path;
  }

  public void setShpName(String shpName) {
    this.shpName = shpName;
  }

}

⌨️ 快捷键说明

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