Package org.geotiff.epsg
Class HorizontalCS
- java.lang.Object
-
- org.geotiff.epsg.HorizontalCS
-
- Direct Known Subclasses:
GeographicCS
,ProjectedCS
public abstract class HorizontalCS extends Object
Represents the base class of the EPSG horizontal coordinate systems. It is also contains the factory method for constructing these things.- Author:
- Niles D. Ritter
-
-
Field Summary
Fields Modifier and Type Field Description static int
WGS84
-
Constructor Summary
Constructors Modifier Constructor Description protected
HorizontalCS(int code)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static HorizontalCS
create(int code)
Factory method for coordinate systems.int
getCode()
abstract HorizontalCS
getGeographicCS()
This method must be implemented by the concrete class to return the underlying geographic coordinate system.protected void
setCode(int aCode)
-
-
-
Method Detail
-
setCode
protected void setCode(int aCode)
-
getCode
public int getCode()
-
getGeographicCS
public abstract HorizontalCS getGeographicCS()
This method must be implemented by the concrete class to return the underlying geographic coordinate system.- Returns:
- the GeographicCS for this HorizontalCS
-
create
public static HorizontalCS create(int code) throws InvalidCodeException
Factory method for coordinate systems.- Parameters:
code
- EPSG code of this Coordinate Reference System- Returns:
- a Horizontal Coordinate Reference System
- Throws:
InvalidCodeException
- if code is not valid
-
-