⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 suidao.java

📁 基于Java的地图数据管理软件。使用MySQL数据库管理系统。
💻 JAVA
字号:
package net.aetherial.gis.jiaotongbu.output.type;

import org.w3c.dom.Node;
import net.aetherial.gis.surface.ItemValue;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class Suidao  extends WptToJTB{
  protected String changdu = "";
  public Suidao(Node wpt) {
    super(wpt);
  }

  protected String[] getSuidao(Node node) {
    return ItemValue.getWaypointSuidao(node);
  }

  public static final String getHead() {
    return "编号,所在乡镇,隧道名称,所在路线名称,经度,纬度,高程,隧道长度,隧道编码,建成时间,起点桩号,隧道净高,隧道全宽,备注\r\n";
  }

  public void setValue(){
    super.setValue();
    String[] sd = this.getSuidao(this.wpt);
    if (sd != null) {
      this.changdu = sd[1];
    }
  }
  public String getValue(){
    return super.getValue()+",\"" + this.changdu + "\"";
  }

  public String getARecord() {
    String[] sd = this.getSuidao(this.wpt);
    if (sd != null) {
      String ntemp = "";
      for (int i = 0; i < sd.length; i++) {
        if (i > 0) {
          ntemp = ntemp + ",\"" + sd[i] + "\"";
        }
      }
      return super.getARecord() + ntemp;
    }
    else {
      return super.getARecord();
    }
  }

}

⌨️ 快捷键说明

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