1 9 package org.jscience.geography.coordinates.crs; 10 11 import java.util.Collection ; 12 import java.util.Set ; 13 14 import javax.measure.units.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 29 public abstract class VerticalCRS<C extends Coordinates> extends CoordinateReferenceSystem<C> { 30 31 34 public static final CoordinateSystem HEIGHT_CS = new CoordinateSystem() { 35 36 Axis heightAxis = new Axis("Gravity-related height", "Height", SI.METER, 37 AxisDirection.UP); 38 39 public int getDimension() { 40 return 1; 41 } 42 43 public CoordinateSystemAxis getAxis(int dimension) 44 throws IndexOutOfBoundsException { 45 if (dimension == 0) { 46 return heightAxis; 47 } else { 48 throw new IndexOutOfBoundsException (); 49 } 50 } 51 52 public Identifier getName() { 53 throw new UnsupportedOperationException (); 54 } 55 56 public Collection getAlias() { 57 return EMPTY_SET; 58 } 59 60 public Set getIdentifiers() { 61 return EMPTY_SET; 62 } 63 64 public InternationalString getRemarks() { 65 throw new UnsupportedOperationException (); 66 } 67 68 public String toWKT() throws UnsupportedOperationException { 69 throw new UnsupportedOperationException (); 70 } 71 }; 72 73 } | Popular Tags |