/*
 * JScience - Java(TM) Tools and Libraries for the Advancement of Sciences.
 * Copyright (C) 2006 - JScience (http://jscience.org/)
 * All rights reserved.
 * 
 * Permission to use, copy, modify, and distribute this software is
 * freely granted, provided that this notice is preserved.
 */
package org.jscience.geography.coordinates.crs;

import java.util.Collection;
import java.util.Set;

import javax.measure.unit.SI;

import org.jscience.geography.coordinates.Coordinates;
import org.opengis.metadata.Identifier;
import org.opengis.referencing.cs.AxisDirection;
import org.opengis.referencing.cs.CoordinateSystem;
import org.opengis.referencing.cs.CoordinateSystemAxis;
import org.opengis.util.InternationalString;

/**
 * This class represents a 1 dimensional vertical reference system.
 * 
 * @author Jean-Marie Dautelle
 * @version 3.0, February 13, 2006
 */
public abstract class VerticalCRS> extends CoordinateReferenceSystem {
    
    /**
     * Holds the gravity-related height coordinate system.
     */
    public static final CoordinateSystem HEIGHT_CS = new CoordinateSystem() {

        Axis heightAxis = new Axis("Gravity-related height", "Height", SI.METRE,
                AxisDirection.UP);

        public int getDimension() {
            return 1;
        }

        public CoordinateSystemAxis getAxis(int dimension)
                throws IndexOutOfBoundsException {
            if (dimension == 0) {
                return heightAxis;
            } else {
                throw new IndexOutOfBoundsException();
            }
        }

        public Identifier getName() {
            throw new UnsupportedOperationException();
        }

        public Collection getAlias() {
            return EMPTY_SET;
        }

        public Set getIdentifiers() {
            return EMPTY_SET;
        }

        public InternationalString getRemarks() {
            throw new UnsupportedOperationException();
        }

        public String toWKT() throws UnsupportedOperationException {
            throw new UnsupportedOperationException();
        }
    };

}
 

Ads help maintain this website.