📄 xiandao.java
字号:
package net.aetherial.gis.our.allauto.chek.zhengli;
import net.aetherial.gis.our.allauto.chek.Daolu;
import net.aetherial.gis.our.allauto.create.ToPick;
import net.aetherial.gis.our.allauto.create.ToShp;
import net.aetherial.gis.our.allauto.create.ToExcel;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company: </p>
*
* @author 王爱国
* @version 1.0
*/
public class XianDao extends Daolu{
private double shashi = 0.0;
private double tulu = 0.0;
public XianDao(String filePath) {
super(filePath);
}
/**
* 生成shp文件
*/
public void createPickUpFile(){
ToPick tp = new ToPick();
this.println("正在把县道按路面类型变化点切割。");
tp.cutXainDaoLine(getEndWithSlash(this.getAbsolutePath()),this.cd.getTiqu_xian_qiege(),this.fo);
this.println("正在提取县道砂石路航迹。");
tp.pick_ShaShi(this.cd.getTiqu_xian_qiege(),this.cd.getTiqu_xian_shashi(),this.fo);
this.println("正在提取县道土路。");
tp.pick_TuLu(this.cd.getTiqu_xian_qiege(),this.cd.getTiqu_xian_tulu(),this.fo);
this.println("提取县道航迹完毕。");
}
/**
* 生成shp文件
*/
public void createSHP(){
ToShp ts = new ToShp();
this.println("正在生成县道底图.....shp");
ts.createXiandao_DITU(getEndWithSlash(this.getAbsolutePath()),this.cd.getShp_xian(),this.fo);
this.println("正在生成县道_砂石路.....shp");
ts.createXiandao_SHASHI(this.cd.getTiqu_xian_shashi(),this.cd.getShp_xian(),this.fo);
this.println("正在生成县道_土路.....shp");
ts.createXiandao_TULU(this.cd.getTiqu_xian_tulu(),this.cd.getShp_xian(),this.fo);
this.println("生成县道shp完毕。");
}
/**
* 生成Excel文件
*/
public void createExcel(){
ToExcel tx = new ToExcel();
this.println("正在生成县道砂石路报表.....");
this.shashi = tx.create_Xian_ShaShi_Excel(this.cd.getTiqu_xian_shashi(),this.cd.getExcel_root(),this.fo);
this.println("正在生成县道土路报表.....");
this.tulu = tx.create_Xian_Tulu_Excel(this.cd.getTiqu_xian_tulu(),this.cd.getExcel_root(),this.fo);
}
/**
* 得到县道砂石路
*/
public double getShashi_licheng(){
return this.shashi;
}
/**
* 得到县道土路
*/
public double getTulu_licheng(){
return this.tulu;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -