/** * Verifies the consistency between spherical and elliptical formulas in the South pole. * * @throws FactoryException if an error occurred while creating the map projection. * @throws TransformException if an error occurred while projecting a coordinate. */ @Test public void testSphericalCaseSouth() throws FactoryException, TransformException { createNormalizedProjection(new PolarStereographicSouth()); final double delta = toRadians(100.0 / 60) / 1852; // Approximatively 100 metres. derivativeDeltas = new double[] {delta, delta}; verifyInDomain(CoordinateDomain.GEOGRAPHIC_RADIANS_SOUTH, 56763886); }
/** * Verifies the consistency between spherical and elliptical formulas in the North pole. * This is the same formulas than the South case, but with the sign of some coefficients negated. * * @throws FactoryException if an error occurred while creating the map projection. * @throws TransformException if an error occurred while projecting a coordinate. */ @Test @DependsOnMethod("testSphericalCaseSouth") public void testSphericalCaseNorth() throws FactoryException, TransformException { createNormalizedProjection(new PolarStereographicNorth()); final double delta = toRadians(100.0 / 60) / 1852; // Approximatively 100 metres. derivativeDeltas = new double[] {delta, delta}; verifyInDomain(CoordinateDomain.GEOGRAPHIC_RADIANS_NORTH, 56763886); }