tostatistic.java
来自「基于Java的地图数据管理软件。使用MySQL数据库管理系统。」· Java 代码 · 共 43 行
JAVA
43 行
package net.aetherial.gis.our.allauto.create;
import net.aetherial.gis.our.FrameOur;
import net.aetherial.gis.our.auto.extend.Statistic;
import net.aetherial.gis.our.auto.count.count.CountNoCut;
/**
* <p>Title: </p>
*
* <p>Description: 1、统计砂石、土路、油路,里程。2.统计行政村沟通情况</p>
*
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class ToStatistic {
public ToStatistic() {
}
public double[] getLicheng(String directory,FrameOur fo){
double[] licheng = new double[6];
CountNoCut cnc = new CountNoCut(fo,null);
cnc.setInputDirectory(directory);
cnc.countAllFile();
licheng[0] = cnc.getDis_SHUI_NI_all_than_3();
licheng[1] = cnc.getDis_SHUI_NI_all_less_3();
licheng[2] = cnc.getDis_YOU_LU_all_than_3();
licheng[3] = cnc.getDis_YOU_LU_all_less_3();
licheng[4] = cnc.getDis_SHA_SHI_all();
licheng[5] = cnc.getDis_TU_LU_all();
return licheng;
}
public long countXZC(String directory,FrameOur fo){
Statistic xzc = new Statistic();
xzc.setInputDirectory(directory);
xzc.setFrameOur(fo);
xzc.countAllFile();
return xzc.getXZCCount();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?