suidao.java

来自「基于Java的地图数据管理软件。使用MySQL数据库管理系统。」· Java 代码 · 共 60 行

JAVA
60
字号
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 + =
减小字号Ctrl + -
显示快捷键?