📄 xiangcundao.java
字号:
package net.aetherial.gis.our.allauto.chek.zhengli;
import java.io.File;
import net.aetherial.gis.surface.ItemValue;
import net.aetherial.gis.our.auto.extend.UniteAllFile;
import net.aetherial.gis.our.auto.extend.PickUpTrack;
import net.aetherial.gis.dataType.WptType;
import net.aetherial.gis.our.allauto.chek.Daolu;
import net.aetherial.gis.our.FrameOur;
import net.aetherial.gis.our.allauto.create.ToPick;
import net.aetherial.gis.our.allauto.create.CreateDirect;
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 XiangcunDao extends Daolu{
private double goutong = 0.0;
private double feigoutong = 0.0;
public XiangcunDao(String xiangcunPath) {
super(xiangcunPath);
}
public XiangcunDao(File xiangcunFile) {
super(xiangcunFile);
}
/**
* 生成shp文件
*/
public void createSHP() {
System.getProperties().getProperty("");
ToShp ts = new ToShp();
this.println("正在生成乡村道底图.....shp,这一步很慢,请休息一会再来.");
ts.createXiangcun_DITU(getEndWithSlash(this.getAbsolutePath()),this.cd.getShp_xiangcun(),this.fo);
this.println("正在生成乡村道_行政村.....shp");
ts.createXiangcun_XZC(this.cd.getTiqu_xiangcun_goutong(),this.cd.getShp_xiangcun(),this.fo);
this.println("正在生成乡村道_行政村里程大于8公里.....shp");
ts.createXiangcun_XZC(this.cd.getTiqu_xiangcun_than8(),this.cd.getShp_xiangcun_than8(),this.fo);
this.println("生成乡村道shp完毕。");
}
/**
* 提取数据
* 1.行政村
* 2.非行政村
* 3.大于8公里
*/
public void createPickUpFile(){
ToPick tp = new ToPick();
this.println("正在提取行政村航迹。");
tp.pick_XZC_File(getEndWithSlash(this.getAbsolutePath()),this.cd.getTiqu_xiangcun_goutong(),this.fo);
this.println("正在提取非沟通行政村航迹。");
tp.pick_fei_XZC_File(getEndWithSlash(this.getAbsolutePath()),this.cd.getTiqu_xiangcun_feigoutong(),this.fo);
this.println("正在提取行政村航迹里程大于8公里。");
tp.pick_More_Than_8(this.cd.getTiqu_xiangcun_goutong(),this.cd.getTiqu_xiangcun_than8(),this.fo);
this.println("提取行政村航迹完毕。");
}
/**
* 生成Excel文件
*/
public void createExcel() {
ToExcel tx = new ToExcel();
this.println("正在生成沟通行政村报表......");
this.goutong = tx.create_XZC_Excel(getEndWithSlash(this.getAbsolutePath()),this.cd.getExcel_root(),this.fo);
this.println("正在生成非沟通行政村报表......");
this.feigoutong = tx.create_No_XZC_Excel(this.cd.getTiqu_xiangcun_feigoutong(),this.cd.getExcel_root(),this.fo);
}
/**
* 得到沟通行政村里程
*/
public double getGoutong_licheng(){
return this.goutong;
}
/**
* 得到非沟通行政村里程
*/
public double getFeiGoutong_licheng(){
return this.feigoutong;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -