Humboldt Alignment Editor 2.5.0

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

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

public class CRSConverter
extends Object

Geotools based CRS converter.

Author:
Simon Templer

Nested Class Summary
static class CRSConverter.ThreadLocalDirectPosition2D
          Thread local direct position initialized with a DirectPosition2D.
 
Method Summary
 de.cs3d.common.metamodel.helperGeometry.BoundingBox convert(de.cs3d.common.metamodel.helperGeometry.BoundingBox bb)
          Convert a bounding box.
 de.cs3d.common.metamodel.Point3D convert(double x, double y, double z)
          This method converts the given coordinates and returns them as a Point3D.
static CRSConverter getConverter(org.opengis.referencing.crs.CoordinateReferenceSystem source, org.opengis.referencing.crs.CoordinateReferenceSystem target)
          Create a CRS converter between the given coordinate reference systems.
 org.opengis.referencing.crs.CoordinateReferenceSystem getSource()
           
 org.opengis.referencing.crs.CoordinateReferenceSystem getTarget()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConverter

public static CRSConverter getConverter(org.opengis.referencing.crs.CoordinateReferenceSystem source,
                                        org.opengis.referencing.crs.CoordinateReferenceSystem target)
                                 throws org.opengis.referencing.FactoryException
Create a CRS converter between the given coordinate reference systems.

Parameters:
source - the source CRS
target - the target CRS
Returns:
the CRS converter
Throws:
org.opengis.referencing.FactoryException - if creating the transformer fails

convert

public de.cs3d.common.metamodel.helperGeometry.BoundingBox convert(de.cs3d.common.metamodel.helperGeometry.BoundingBox bb)
                                                            throws org.opengis.referencing.operation.TransformException
Convert a bounding box.

Parameters:
bb - the bounding box in the source CRS
Returns:
the bounding box in the target CRS
Throws:
org.opengis.referencing.operation.TransformException - if the conversion fails

convert

public de.cs3d.common.metamodel.Point3D convert(double x,
                                                double y,
                                                double z)
                                         throws org.opengis.referencing.operation.TransformException
This method converts the given coordinates and returns them as a Point3D.

Parameters:
x - the x ordinate
y - the y ordinate
z - the z ordinate
Returns:
The converted coordinates as a Point3D.
Throws:
org.opengis.referencing.operation.TransformException - if the coordinate transformation fails

getSource

public org.opengis.referencing.crs.CoordinateReferenceSystem getSource()
Returns:
the source coordinate reference system

getTarget

public org.opengis.referencing.crs.CoordinateReferenceSystem getTarget()
Returns:
the target coordinate reference system

Humboldt Alignment Editor 2.5.0

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