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

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

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

origin: apache/sis

/**
 * Invoked by JAXB at unmarshalling time for storing the result temporarily.
 *
 * @param  conversion  the unmarshalled element.
 */
public void setElement(final DefaultConversion conversion) {
  metadata = conversion;
  Context.setWrapper(Context.current(), this);
  if (conversion.getMethod() == null) incomplete("method");
}
origin: org.apache.sis.core/sis-referencing

/**
 * Invoked by JAXB at unmarshalling time for storing the result temporarily.
 *
 * @param  conversion  the unmarshalled element.
 */
public void setElement(final DefaultConversion conversion) {
  metadata = conversion;
  Context.setWrapper(Context.current(), this);
  if (conversion.getMethod() == null) incomplete("method");
}
origin: apache/sis

final OperationMethod method = c.getMethod();
assertNotNull("method", method);
verifyMethod(method);
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);
}
origin: apache/sis

final DefaultConversion definingConversion = new DefaultConversion(
    IdentifiedObjects.getProperties(reference),
    reference.getMethod(),
    reference.getMathTransform(),
    reference.getParameterValues());
org.apache.sis.referencing.operationDefaultConversiongetMethod

Popular methods of DefaultConversion

  • <init>
    Constructs a new conversion with the same values than the specified one, together with the specified
  • getSourceCRS
  • getTargetCRS
  • 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

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • ImageIO (javax.imageio)
  • JButton (javax.swing)
  • Option (scala)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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