| java.lang.Object org.geotools.referencing.factory.wms.Code
Code | final class Code (Code) | | A code parsed by the
AutoCRSFactory methods.
The expected format is
AUTO:code,lon0,lat0 where
AUTO is optional.
version: $Id: Code.java 20874 2006-08-07 10:00:01Z jgarnett $ author: Jody Garnett author: Martin Desruisseaux |
Field Summary | |
final public String | authority The authority name. | final public int | code The code number. | final public double | latitude The central latitude. | final public double | longitude The central longitude. | final Class | type The type of the CRS to be constructed (e.g. |
Constructor Summary | |
public | Code(String text, Class type) Parse the code string to retrive the code number and central longitude / latitude.
Assumed format is
AUTO:code,lon0,lat0 where
AUTO is optional.
Parameters: text - The code in the AUTO:code,lon0,lat0 format. Parameters: The - type of the CRS to be constructed (e.g. |
Method Summary | |
public String | toString() Returns a string representation of this code. |
authority | final public String authority(Code) | | The authority name. Should usually be
AUTO .
|
code | final public int code(Code) | | The code number.
|
latitude | final public double latitude(Code) | | The central latitude.
|
longitude | final public double longitude(Code) | | The central longitude.
|
type | final Class type(Code) | | The type of the CRS to be constructed (e.g.
GeographicCRS.class ).
Used only in case of failure for constructing an error message.
|
Code | public Code(String text, Class type) throws NoSuchAuthorityCodeException(Code) | | Parse the code string to retrive the code number and central longitude / latitude.
Assumed format is
AUTO:code,lon0,lat0 where
AUTO is optional.
Parameters: text - The code in the AUTO:code,lon0,lat0 format. Parameters: The - type of the CRS to be constructed (e.g. GeographicCRS.class ).Used only in case of failure for constructing an error message. throws: NoSuchAuthorityCodeException - if the specified code can't be parsed. |
toString | public String toString()(Code) | | Returns a string representation of this code.
|
|
|