org.deegree.cs.transformations
Class TransformationAccuracyTest

java.lang.Object
  extended by org.deegree.cs.transformations.TransformationAccuracy
      extended by org.deegree.cs.transformations.TransformationAccuracyTest
All Implemented Interfaces:
CRSDefines

public class TransformationAccuracyTest
extends TransformationAccuracy
implements CRSDefines

A JUnit test class for testing the accuracy of various transformations, thus testing the functionality of the Transformation factory independent of any underlying configuration.

Version:
$Revision: 15508 $, $Date: 2009-01-06 12:08:22 +0100 (Tue, 06 Jan 2009) $
Author:
Rutger Bezema, last edited by: $Author: rbezema $

Field Summary
 
Fields inherited from interface org.deegree.cs.transformations.CRSDefines
axis_degree, axis_geocentric, axis_lat_lon, axis_projection, axis_y_x, datum_6171, datum_6258, datum_6289, datum_6314, DEGREE_EPSILON, ellipsoid_7004, ellipsoid_7019, EPSILON_D, EPSILON_M, geocentric_4964, geocentric_dummy, geographic_4258, geographic_4258_lat_lon, geographic_4289, geographic_4289_lat_lon, geographic_4314, geographic_4314_lat_lon, heightAxis, METER_EPSILON, projected_25832, projected_25832_lat_lon, projected_25832_yx, projected_28992, projected_28992_lat_lon, projected_28992_yx, projected_31467, projected_31467_lat_lon, projected_31467_yx, projection_25832, projection_25832_lat_lon, projection_28992, projection_28992_lat_lon, projection_31467, projection_31467_lat_lon, wgs_1188, wgs_1672, wgs_1777
 
Constructor Summary
TransformationAccuracyTest()
           
 
Method Summary
 void test2DTo2Dwith3rdCoordinate()
           
 void testCompoundToCompound()
          Test the forward/inverse transformation from a compound_projected crs (EPSG:28992) to another compound_projected crs (EPSG:25832)
 void testCompoundToGeocentric()
          Test the forward/inverse transformation from a compound_projected crs (EPSG:31467) to a geocentric crs (EPSG:4964)
 void testCompoundToGeographic()
          Test the transformation from a compound_projected crs (EPSG:28992_compound) to a geographic crs (EPSG:4258) coordinate system .
 void testCompoundToGeographicEqualOnEllips()
          Test the transformation from a compound_projected crs (EPSG:28992_compound) to a geographic crs (EPSG:4258) coordinate system .
 void testCompoundToGeographicEqualOnEllipsNotOnAxis()
          Test the transformation from a compound_projected crs (EPSG:28992_compound) to a geographic crs (EPSG:4258) coordinate system .
 void testCompoundToProjected()
          Test the forward/inverse transformation from a compound_geographic crs (EPSG:4326) to a projected crs (EPSG:31467)
 void testGeocentricToGeocentric()
          Test the forward/inverse transformation from a geocentric (dummy based on bessel) to another geocentric crs (EPSG:4964 based on etrs89)
 void testGeographicLatLonToGeographic()
          Test the forward/inverse transformation from a geographic crs (EPSG:4314) lat/lon to another geographic crs (EPSG:4258) lon/lat
 void testGeographicLatLonToGeographicLatLon()
          Test the forward/inverse transformation from a geographic crs (EPSG:4314) lat/lon to another geographic crs (EPSG:4258) lat/lon
 void testGeographicToGeocentric()
          Test the forward/inverse transformation from a geographic crs (EPSG:4314) to a geocentric crs (EPSG:4964)
 void testGeographicToGeographic()
          Test the forward/inverse transformation from a geographic crs (EPSG:4314) to another geographic crs (EPSG:4258)
 void testProjectedOnGeoLatLonToGeographic()
          Test the forward/inverse transformation from a projected crs (EPSG:31467) based on a lat/lon geographic crs to a geographic crs (EPSG:4258).
 void testProjectedToGeocentric()
          Test the forward/inverse transformation from a projected crs (EPSG:28992) to a geocentric crs (EPSG:4964)
 void testProjectedToGeographic()
          Test the forward/inverse transformation from a projected crs (EPSG:31467) to a geographic crs (EPSG:4258)
 void testProjectedToGeographicLatLon()
          Test the forward/inverse transformation from a projected crs (EPSG:31467) to a geographic crs (EPSG:4258) which has lat/lon axis
 void testProjectedToProjected()
          Test the forward/inverse transformation from a projected crs (EPSG:28992) to another projected crs (EPSG:25832)
 void testProjectedToProjectedWithLatLonGeoAxis()
          Test the forward/inverse transformation from a projected crs (EPSG:28992) to another projected crs (EPSG:25832)
 void testProjectedToProjectedWithYX()
          Test the forward/inverse transformation from a projected crs (EPSG:28992) to another projected crs (EPSG:25832)
 void testProjectedWithYXToGeographic()
          Test the forward/inverse transformation from a projected crs (EPSG:31467) with yx axis order to a geographic crs (EPSG:4258).
 void testSwitchXYEPSG7423()
           
 
Methods inherited from class org.deegree.cs.transformations.TransformationAccuracy
doForwardAndInverse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformationAccuracyTest

public TransformationAccuracyTest()
Method Detail

testCompoundToCompound

public void testCompoundToCompound()
                            throws TransformationException
Test the forward/inverse transformation from a compound_projected crs (EPSG:28992) to another compound_projected crs (EPSG:25832)

Throws:
TransformationException

testCompoundToGeographic

public void testCompoundToGeographic()
                              throws TransformationException
Test the transformation from a compound_projected crs (EPSG:28992_compound) to a geographic crs (EPSG:4258) coordinate system .

Throws:
TransformationException

testCompoundToGeographicEqualOnEllips

public void testCompoundToGeographicEqualOnEllips()
                                           throws TransformationException
Test the transformation from a compound_projected crs (EPSG:28992_compound) to a geographic crs (EPSG:4258) coordinate system .

Throws:
TransformationException

testCompoundToGeographicEqualOnEllipsNotOnAxis

public void testCompoundToGeographicEqualOnEllipsNotOnAxis()
                                                    throws TransformationException
Test the transformation from a compound_projected crs (EPSG:28992_compound) to a geographic crs (EPSG:4258) coordinate system .

Throws:
TransformationException

testCompoundToGeocentric

public void testCompoundToGeocentric()
                              throws TransformationException
Test the forward/inverse transformation from a compound_projected crs (EPSG:31467) to a geocentric crs (EPSG:4964)

Throws:
TransformationException

testCompoundToProjected

public void testCompoundToProjected()
                             throws TransformationException
Test the forward/inverse transformation from a compound_geographic crs (EPSG:4326) to a projected crs (EPSG:31467)

Throws:
TransformationException

testProjectedToProjected

public void testProjectedToProjected()
                              throws TransformationException
Test the forward/inverse transformation from a projected crs (EPSG:28992) to another projected crs (EPSG:25832)

Throws:
TransformationException

testProjectedToProjectedWithLatLonGeoAxis

public void testProjectedToProjectedWithLatLonGeoAxis()
                                               throws TransformationException
Test the forward/inverse transformation from a projected crs (EPSG:28992) to another projected crs (EPSG:25832)

Throws:
TransformationException

testProjectedToProjectedWithYX

public void testProjectedToProjectedWithYX()
                                    throws TransformationException
Test the forward/inverse transformation from a projected crs (EPSG:28992) to another projected crs (EPSG:25832)

Throws:
TransformationException

testProjectedToGeographic

public void testProjectedToGeographic()
                               throws TransformationException
Test the forward/inverse transformation from a projected crs (EPSG:31467) to a geographic crs (EPSG:4258)

Throws:
TransformationException

testProjectedWithYXToGeographic

public void testProjectedWithYXToGeographic()
                                     throws TransformationException
Test the forward/inverse transformation from a projected crs (EPSG:31467) with yx axis order to a geographic crs (EPSG:4258).

Throws:
TransformationException

testProjectedOnGeoLatLonToGeographic

public void testProjectedOnGeoLatLonToGeographic()
                                          throws TransformationException
Test the forward/inverse transformation from a projected crs (EPSG:31467) based on a lat/lon geographic crs to a geographic crs (EPSG:4258).

Throws:
TransformationException

testProjectedToGeographicLatLon

public void testProjectedToGeographicLatLon()
                                     throws TransformationException
Test the forward/inverse transformation from a projected crs (EPSG:31467) to a geographic crs (EPSG:4258) which has lat/lon axis

Throws:
TransformationException

testProjectedToGeocentric

public void testProjectedToGeocentric()
                               throws TransformationException
Test the forward/inverse transformation from a projected crs (EPSG:28992) to a geocentric crs (EPSG:4964)

Throws:
TransformationException

testGeographicToGeographic

public void testGeographicToGeographic()
                                throws TransformationException
Test the forward/inverse transformation from a geographic crs (EPSG:4314) to another geographic crs (EPSG:4258)

Throws:
TransformationException

testGeographicLatLonToGeographic

public void testGeographicLatLonToGeographic()
                                      throws TransformationException
Test the forward/inverse transformation from a geographic crs (EPSG:4314) lat/lon to another geographic crs (EPSG:4258) lon/lat

Throws:
TransformationException

testGeographicLatLonToGeographicLatLon

public void testGeographicLatLonToGeographicLatLon()
                                            throws TransformationException
Test the forward/inverse transformation from a geographic crs (EPSG:4314) lat/lon to another geographic crs (EPSG:4258) lat/lon

Throws:
TransformationException

testGeographicToGeocentric

public void testGeographicToGeocentric()
                                throws TransformationException
Test the forward/inverse transformation from a geographic crs (EPSG:4314) to a geocentric crs (EPSG:4964)

Throws:
TransformationException
TransformationException

testGeocentricToGeocentric

public void testGeocentricToGeocentric()
                                throws TransformationException
Test the forward/inverse transformation from a geocentric (dummy based on bessel) to another geocentric crs (EPSG:4964 based on etrs89)

Throws:
TransformationException

test2DTo2Dwith3rdCoordinate

public void test2DTo2Dwith3rdCoordinate()
                                 throws TransformationException
Throws:
TransformationException

testSwitchXYEPSG7423

public void testSwitchXYEPSG7423()
                          throws IllegalArgumentException,
                                 TransformationException
Throws:
IllegalArgumentException
TransformationException


Copyright © 2011. All Rights Reserved.