Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.instance.geometry.impl
Class CodeDefinition

java.lang.Object
  extended by eu.esdihumboldt.hale.common.instance.geometry.impl.CodeDefinition
All Implemented Interfaces:
CRSDefinition, Serializable

public class CodeDefinition
extends Object
implements CRSDefinition

CRS definition based on a code

Author:
Simon Templer
See Also:
Serialized Form

Constructor Summary
CodeDefinition(String code, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
          Constructor
 
Method Summary
 boolean equals(Object obj)
           
 String getCode()
          Get the CRS code
 org.opengis.referencing.crs.CoordinateReferenceSystem getCRS()
          Get the coordinate reference system
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeDefinition

public CodeDefinition(String code,
                      org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Constructor

Parameters:
code - the CRS code (e.g. EPSG:4326)
crs - the coordinate reference system, may be null
Method Detail

getCRS

public org.opengis.referencing.crs.CoordinateReferenceSystem getCRS()
Description copied from interface: CRSDefinition
Get the coordinate reference system

Specified by:
getCRS in interface CRSDefinition
Returns:
the coordinate reference system
See Also:
CRSDefinition.getCRS()

getCode

public String getCode()
Get the CRS code

Returns:
the code

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d