Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.views.styledmap.util
Class CRSDecode

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.views.styledmap.util.CRSDecode

public abstract class CRSDecode
extends Object

Utility class for CRS decoding.

Author:
Simon Templer

Constructor Summary
CRSDecode()
           
 
Method Summary
static org.opengis.referencing.crs.CoordinateReferenceSystem getCRS(int epsg)
          Get or create the CRS with the given code.
static org.opengis.referencing.crs.CoordinateReferenceSystem getCRS(String code)
          Get or create the CRS with the given code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRSDecode

public CRSDecode()
Method Detail

getCRS

public static org.opengis.referencing.crs.CoordinateReferenceSystem getCRS(String code)
                                                                    throws org.opengis.referencing.NoSuchAuthorityCodeException,
                                                                           org.opengis.referencing.FactoryException
Get or create the CRS with the given code.

Parameters:
code - the CRS code
Returns:
the coordinate reference system
Throws:
org.opengis.referencing.NoSuchAuthorityCodeException - if a code with an unknown authority was supplied
org.opengis.referencing.FactoryException - if creation of the CRS failed

getCRS

public static org.opengis.referencing.crs.CoordinateReferenceSystem getCRS(int epsg)
                                                                    throws org.opengis.referencing.NoSuchAuthorityCodeException,
                                                                           org.opengis.referencing.FactoryException
Get or create the CRS with the given code.

Parameters:
epsg - the EPSG code of the CRS
Returns:
the coordinate reference system
Throws:
org.opengis.referencing.NoSuchAuthorityCodeException - if EPSG is not known to the system
org.opengis.referencing.FactoryException - if creation of the CRS failed

Humboldt Alignment Editor 2.5.0

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