/*
* 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 temporal reference system.
*
* @author Jean-Marie Dautelle
* @version 3.0, February 13, 2006
*/
public abstract class TemporalCRS> extends CoordinateReferenceSystem {
/**
* Holds the time coordinate system.
*/
public static final CoordinateSystem TIME_CS = new CoordinateSystem() {
Axis timeAxis = new Axis("Time", "Time", SI.SECOND,
AxisDirection.FUTURE);
public int getDimension() {
return 1;
}
public CoordinateSystemAxis getAxis(int dimension)
throws IndexOutOfBoundsException {
if (dimension == 0) {
return timeAxis;
} 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.