Class HorizontalCS
java.lang.Object
org.geotiff.epsg.HorizontalCS
- Direct Known Subclasses:
GeographicCS, ProjectedCS
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HorizontalCScreate(int code) Factory method for coordinate systems.intgetCode()abstract HorizontalCSThis method must be implemented by the concrete class to return the underlying geographic coordinate system.protected voidsetCode(int aCode)
-
Field Details
-
WGS84
public static int WGS84
-
-
Constructor Details
-
HorizontalCS
protected HorizontalCS(int code)
-
-
Method Details
-
setCode
protected void setCode(int aCode) -
getCode
public int getCode() -
getGeographicCS
This method must be implemented by the concrete class to return the underlying geographic coordinate system.- Returns:
- the GeographicCS for this HorizontalCS
-
create
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
-