Search in sources :

Example 1 with ZonedTransverseMercator

use of org.apache.sis.internal.referencing.provider.ZonedTransverseMercator in project sis by apache.

the class ZonedGridSystemTest method createProjection.

/**
 * Creates a new instance of {@link ZonedGridSystem}.
 *
 * @param  ellipse  {@code false} for a sphere, or {@code true} for WGS84 ellipsoid.
 */
private void createProjection(final boolean ellipse) throws FactoryException {
    final ZonedTransverseMercator method = new ZonedTransverseMercator();
    final Parameters values = parameters(method, ellipse);
    values.parameter(Constants.SCALE_FACTOR).setValue(0.9996, Units.UNITY);
    values.parameter(Constants.FALSE_EASTING).setValue(500000, Units.METRE);
    values.parameter("Initial longitude").setValue(-180, Units.DEGREE);
    values.parameter("Zone width").setValue(6, Units.DEGREE);
    transform = new MathTransformFactoryMock(method).createParameterizedTransform(values);
    tolerance = Formulas.LINEAR_TOLERANCE;
    validate();
}
Also used : Parameters(org.apache.sis.parameter.Parameters) ZonedTransverseMercator(org.apache.sis.internal.referencing.provider.ZonedTransverseMercator) MathTransformFactoryMock(org.apache.sis.referencing.operation.transform.MathTransformFactoryMock)

Aggregations

ZonedTransverseMercator (org.apache.sis.internal.referencing.provider.ZonedTransverseMercator)1 Parameters (org.apache.sis.parameter.Parameters)1 MathTransformFactoryMock (org.apache.sis.referencing.operation.transform.MathTransformFactoryMock)1