01: /*
02: * JScience - Java(TM) Tools and Libraries for the Advancement of Sciences.
03: * Copyright (C) 2006 - JScience (http://jscience.org/)
04: * All rights reserved.
05: *
06: * Permission to use, copy, modify, and distribute this software is
07: * freely granted, provided that this notice is preserved.
08: */
09: package org.jscience.geography.coordinates.crs;
10:
11: import java.util.Collection;
12: import java.util.Set;
13:
14: import javax.measure.unit.SI;
15:
16: import org.jscience.geography.coordinates.Coordinates;
17: import org.opengis.metadata.Identifier;
18: import org.opengis.referencing.cs.AxisDirection;
19: import org.opengis.referencing.cs.CoordinateSystem;
20: import org.opengis.referencing.cs.CoordinateSystemAxis;
21: import org.opengis.util.InternationalString;
22:
23: /**
24: * This class represents a 1 dimensional vertical reference system.
25: *
26: * @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a>
27: * @version 3.0, February 13, 2006
28: */
29: public abstract class VerticalCRS<C extends Coordinates<?>> extends
30: CoordinateReferenceSystem<C> {
31:
32: /**
33: * Holds the gravity-related height coordinate system.
34: */
35: public static final CoordinateSystem HEIGHT_CS = new CoordinateSystem() {
36:
37: Axis heightAxis = new Axis("Gravity-related height", "Height",
38: SI.METRE, AxisDirection.UP);
39:
40: public int getDimension() {
41: return 1;
42: }
43:
44: public CoordinateSystemAxis getAxis(int dimension)
45: throws IndexOutOfBoundsException {
46: if (dimension == 0) {
47: return heightAxis;
48: } else {
49: throw new IndexOutOfBoundsException();
50: }
51: }
52:
53: public Identifier getName() {
54: throw new UnsupportedOperationException();
55: }
56:
57: public Collection<String> getAlias() {
58: return EMPTY_SET;
59: }
60:
61: public Set<String> getIdentifiers() {
62: return EMPTY_SET;
63: }
64:
65: public InternationalString getRemarks() {
66: throw new UnsupportedOperationException();
67: }
68:
69: public String toWKT() throws UnsupportedOperationException {
70: throw new UnsupportedOperationException();
71: }
72: };
73:
74: }
|