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 24 30 public abstract class TemporalCRS<C extends Coordinates> extends CoordinateReferenceSystem<C> { 31 32 35 public static final CoordinateSystem TIME_CS = new CoordinateSystem() { 36 37 Axis timeAxis = new Axis("Time", "Time", SI.SECOND, 38 AxisDirection.FUTURE); 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 timeAxis; 48 } else { 49 throw new IndexOutOfBoundsException (); 50 } 51 } 52 53 public Identifier getName() { 54 throw new UnsupportedOperationException (); 55 } 56 57 public Collection getAlias() { 58 return EMPTY_SET; 59 } 60 61 public Set 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 } | Popular Tags |