horizontalcs.java

来自「OpenMap是一个基于JavaBeansTM的开发工具包。利用OpenMap你」· Java 代码 · 共 48 行

JAVA
48
字号
package org.geotiff.epsg;/** * Represents the base class of the EPSG horizontal coordinate systems. It is * also contains the factory method for constructing these things. *  * @author: Niles D. Ritter */public abstract class HorizontalCS {    // registered EPGS codes    public static int WGS84 = 4326;    private int code;    protected HorizontalCS(int code) {        setCode(code);    }    protected void setCode(int aCode) {        code = aCode;    }    public int getCode() {        return code;    }    /**     * This method must be implemented by the extendend class to return the     * undelying geographic coordinate system.     */    public abstract HorizontalCS getGeographicCS();    /**     * Factory method for coordinate systems.     */    public static HorizontalCS create(int code) throws InvalidCodeException {        if (code < 0)            throw new InvalidCodeException("whatever");        if (code < 5000)            return new GeographicCS(code);        else            return new ProjectedCS(code);    }}

⌨️ 快捷键说明

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