Tabnine Logo
DefaultConversion.getTargetCRS
Code IndexAdd Tabnine to your IDE (free)

How to use
getTargetCRS
method
in
org.apache.sis.referencing.operation.DefaultConversion

Best Java code snippets using org.apache.sis.referencing.operation.DefaultConversion.getTargetCRS (Showing top 8 results out of 315)

origin: org.apache.sis.core/sis-referencing

  /**
   * Returns the target CRS, which must be projected or {@code null}.
   */
  @Override
  public final ProjectedCRS getTargetCRS() {
    return (ProjectedCRS) super.getTargetCRS();
  }
}
origin: apache/sis

  /**
   * Returns the target CRS, which must be projected or {@code null}.
   */
  @Override
  public final ProjectedCRS getTargetCRS() {
    return (ProjectedCRS) super.getTargetCRS();
  }
}
origin: apache/sis

/**
 * Creates a dummy derived CRS defined by a longitude rotation from Paris to Greenwich prime meridian,
 * and swapping the axis order. The result is equivalent to {@link HardCodedCRS#WGS84_φλ},
 * which of course makes the returned {@code DerivedCRS} totally useless.
 * Its purpose is only to perform easy tests.
 */
private static DefaultDerivedCRS createLongitudeRotation() {
  final DefaultConversion conversion = DefaultConversionTest.createLongitudeRotation(false);
  return new DefaultDerivedCRS(Collections.singletonMap(DefaultDerivedCRS.NAME_KEY, conversion.getTargetCRS().getName()),
      (SingleCRS) conversion.getSourceCRS(), conversion, HardCodedCS.GEODETIC_φλ);
}
origin: apache/sis

assertSame(op, op.specialize(Conversion.class, op.getSourceCRS(), op.getTargetCRS(), factory));
    changeCS(op.getTargetCRS(), HardCodedCS.GEODETIC_φλ), factory);
assertMatrixEquals("Longitude rotation of a two-dimensional CRS", Matrices.create(3, 4, new double[] {
    0, 1, 0, 0,
origin: apache/sis

assertNull("targetCRS", definingConversion.getTargetCRS());
assertFalse(definingConversion.equals(reference));
assertFalse(reference.equals(definingConversion));
    DefaultConversion.class,    // In normal use, this would be 'Conversion.class'.
    changeCS(reference.getSourceCRS(), HardCodedCS.GEODETIC_φλ),
    reference.getTargetCRS(),
    DefaultFactories.forBuildin(MathTransformFactory.class));
origin: apache/sis

assertNull("targetCRS",        c.getTargetCRS());
assertNull("interpolationCRS", c.getInterpolationCRS());
assertNull("mathTransform",    c.getMathTransform());
origin: apache/sis

DefaultConversion.class,    // In normal use, this would be 'Conversion.class'.
changeCS(op.getTargetCRS(), HardCodedCS.GEODETIC_φλ),   // Swap axis order.
DefaultFactories.forBuildin(MathTransformFactory.class));
origin: apache/sis

/**
 * Asserts that at least some of the properties of the given {@code op} instance have the expected values
 * for an instance created by {@link #createLongitudeRotation(GeographicCRS, GeographicCRS, TemporalCRS)}.
 */
@SuppressWarnings("SuspiciousToArrayCall")
private static void verifyProperties(final DefaultConversion op, final boolean swapSourceAxes) {
  assertEquals("name",       "Paris to Greenwich", op.getName().getCode());
  assertEquals("sourceCRS",  "NTF (Paris)",        op.getSourceCRS().getName().getCode());
  assertEquals("targetCRS",  "Back to Greenwich",  op.getTargetCRS().getName().getCode());
  assertEquals("method",     "Longitude rotation", op.getMethod().getName().getCode());
  assertEquals("parameters", "Longitude rotation", op.getParameterDescriptors().getName().getCode());
  final ParameterValueGroup parameters = op.getParameterValues();
  final ParameterValue<?>[] values = parameters.values().toArray(new ParameterValue<?>[1]);
  assertEquals("parameters",    "Longitude rotation", parameters.getDescriptor().getName().getCode());
  assertEquals("parameters[0]", "Longitude offset",    values[0].getDescriptor().getName().getCode());
  assertEquals("parameters[0]", OFFSET, values[0].doubleValue(), STRICT);
  assertEquals(1, values.length);
  final Matrix3 expected = new Matrix3();
  expected.m02 = OFFSET;
  if (swapSourceAxes) {
    expected.m00 = expected.m11 = 0;
    expected.m01 = expected.m10 = 1;
  }
  assertMatrixEquals("Longitude rotation of a two-dimensional CRS", expected,
      MathTransforms.getMatrix(op.getMathTransform()), STRICT);
}
org.apache.sis.referencing.operationDefaultConversiongetTargetCRS

Popular methods of DefaultConversion

  • <init>
    Constructs a new conversion with the same values than the specified one, together with the specified
  • getMethod
  • getSourceCRS
  • specialize
    Returns a specialization of this conversion with a more specific type, source and target CRS. This s
  • castOrCopy
    Returns a SIS coordinate operation implementation with the values of the given arbitrary implementat
  • checkDimensions
  • ensureCompatibleDatum
    Ensures that the actual CRS uses a datum which is equals, ignoring metadata, to the datum of the exp
  • equals
  • getDomainOfValidity
  • getIdentifiers
  • getInterpolationCRS
  • getMathTransform
  • getInterpolationCRS,
  • getMathTransform,
  • getName,
  • getOperationVersion,
  • getParameterDescriptors,
  • getParameterValues,
  • getScope,
  • swapAndScaleAxes

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now