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();
}
Aggregations