📄 uniteallfile.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -