Codota Logo
BursaWolfParameters.isIdentity
Code IndexAdd Codota to your IDE (free)

How to use
isIdentity
method
in
org.apache.sis.referencing.datum.BursaWolfParameters

Best Java code snippets using org.apache.sis.referencing.datum.BursaWolfParameters.isIdentity (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: org.apache.sis.core/sis-referencing

/**
 * {@inheritDoc}
 *
 * @return {@code true} if the parameters describe no operation.
 */
@Override
public boolean isIdentity() {
  return super.isIdentity() && dtX == 0 && dtY == 0 && dtZ == 0;
}
origin: apache/sis

/**
 * {@inheritDoc}
 *
 * @return {@code true} if the parameters describe no operation.
 */
@Override
public boolean isIdentity() {
  return super.isIdentity() && dtX == 0 && dtY == 0 && dtZ == 0;
}
origin: apache/sis

/**
 * Returns the parameters for the <cite>WGS 72 to WGS 84 (2)</cite> transformation (EPSG:1238).
 * Area of validity is the World.
 */
static BursaWolfParameters createWGS72_to_WGS84() {
  final BursaWolfParameters bursaWolf = new BursaWolfParameters(GeodeticDatumMock.WGS84, Extents.WORLD);
  bursaWolf.tZ = 4.5;
  bursaWolf.rZ = 0.554;
  bursaWolf.dS = 0.219;
  bursaWolf.verify(PrimeMeridianMock.GREENWICH);
  assertFalse("isIdentity",    bursaWolf.isIdentity());
  assertFalse("isTranslation", bursaWolf.isTranslation());
  return bursaWolf;
}
origin: apache/sis

/**
 * Returns the parameters for the <cite>NTF to WGS 84 (1)</cite> transformation (EPSG:1193).
 * Area of validity is France - onshore - mainland and Corsica.
 * This transformation uses only translation parameters.
 */
static BursaWolfParameters createNTF_to_WGS84() {
  final BursaWolfParameters bursaWolf = new BursaWolfParameters(GeodeticDatumMock.WGS84, Extents.WORLD);
  bursaWolf.tX = -168;
  bursaWolf.tY =  -60;
  bursaWolf.tZ =  320;
  bursaWolf.verify(PrimeMeridianMock.GREENWICH);
  assertFalse("isIdentity",    bursaWolf.isIdentity());
  assertTrue ("isTranslation", bursaWolf.isTranslation());
  return bursaWolf;
}
origin: apache/sis

/**
 * Returns the parameters for the <cite>ED87 to WGS 84 (1)</cite> transformation (EPSG:1146).
 * Area of validity is the North Sea: 5.05°W to 11.13°E in longitude and 51.04°N to 62.0°N in latitude.
 */
static BursaWolfParameters createED87_to_WGS84() {
  final BursaWolfParameters bursaWolf = new BursaWolfParameters(GeodeticDatumMock.WGS84, new DefaultExtent("Europe - North Sea",
      new DefaultGeographicBoundingBox(-5.05, 11.13, 51.04, 62.0), null, null));
  bursaWolf.tX =  -82.981;
  bursaWolf.tY =  -99.719;
  bursaWolf.tZ = -110.709;
  bursaWolf.rX =   -0.5076;
  bursaWolf.rY =    0.1503;
  bursaWolf.rZ =    0.3898;
  bursaWolf.dS =   -0.3143;
  bursaWolf.verify(PrimeMeridianMock.GREENWICH);
  assertFalse("isIdentity",    bursaWolf.isIdentity());
  assertFalse("isTranslation", bursaWolf.isTranslation());
  return bursaWolf;
}
origin: Geomatys/geotoolkit

/**
 * Tests the conversion from {@code CompoundCRS[EPSG:3035 + Sigma-level]} to {@code EPSG:4326}.
 * The interesting part in this test is that the height is not a standard height, and the
 * referencing module is not supposed to known how to build a 3D Geographic CRS (needed as
 * an intermediate step for the datum shift) with that height.
 *
 * @throws FactoryException Should never happen.
 *
 * @see <a href="http://jira.geotoolkit.org/browse/GEOTK-71">GEOTK-71</a>
 */
@Test
@Ignore("JSR-275 does not accept unit named 'level'.")
public void testProjected3D_to_2D() throws FactoryException {
  CoordinateReferenceSystem targetCRS = CommonCRS.WGS84.geographic();
  CoordinateReferenceSystem sourceCRS = CRS.forCode("EPSG:3035");
  GeodeticDatum targetDatum = ((GeographicCRS) targetCRS).getDatum();
  GeodeticDatum sourceDatum =  ((ProjectedCRS) sourceCRS).getDatum();
  final BursaWolfParameters[] params = ((DefaultGeodeticDatum) sourceDatum).getBursaWolfParameters();
  assertEquals("This test requires that an explicit BursaWolf parameter exists.", 1, params.length);
  assertEquals("targetDatum", targetDatum, params[0].getTargetDatum());
  assertTrue("This test requires that the BursaWolf parameter is set to identity.", params[0].isIdentity());
  CoordinateReferenceSystem vertCRS = CRS.fromWKT(
      "VERT_CS[\"Sigma Level\",VERT_DATUM[\"Sigma Level\",2000],UNIT[\"level\",1.0],AXIS[\"Sigma Level\",DOWN]]");
  sourceCRS = new DefaultCompoundCRS(singletonMap(NAME_KEY, "ETRS89 + Sigma level"), sourceCRS, vertCRS);
  final MathTransform tr = CRS.findOperation(sourceCRS, targetCRS, null).getMathTransform();
  assertSame(tr, CRS.findOperation(sourceCRS, targetCRS, null).getMathTransform());
  assertSame(tr, CRS.findOperation(sourceCRS, targetCRS, null).getMathTransform());
  assertEquals(3, tr.getSourceDimensions());
  assertEquals(2, tr.getTargetDimensions());
}
org.apache.sis.referencing.datumBursaWolfParametersisIdentity

Javadoc

Returns true if a transformation built from this set of parameters would perform no operation. This is true when the value of all parameters is zero.

Popular methods of BursaWolfParameters

  • getTargetDatum
    Returns the target datum for this set of parameters, or null if unknown. This is usually the WGS 84
  • isTranslation
    Returns true if a transformation built from this set of parameters would perform only a translation.
  • <init>
    Creates a new instance for the given target datum and domain of validity. All numerical parameters a
  • equals
    Compares the specified object with this object for equality.
  • getDomainOfValidity
    Returns the region or timeframe in which a coordinate transformation based on those Bursa-Wolf param
  • getPositionVectorTransformation
    Returns the position vector transformation (geocentric domain) as an affine transform. For transform
  • getValues
    Returns the parameter values. The length of the returned array depends on the values: * If this inst
  • setPositionVectorTransformation
    Sets all Bursa-Wolf parameters from the given Position Vector transformation matrix. The matrix sha
  • setValues
    Sets the parameters to the given values. The given array can have any length. The first array elemen
  • verify
    Verifies parameters validity after initialization of DefaultGeodeticDatum. This method requires that
  • clone
    Returns a copy of this object.
  • getNumber
    Retrieves the value at the specified row and column of the given matrix, wrapped in a Number. The Nu
  • clone,
  • getNumber,
  • hashCode,
  • invert,
  • isToWGS84,
  • param,
  • period,
  • reverseRotation,
  • toString

Popular in Java

  • Making http post requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSystemService (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Join (org.hibernate.mapping)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now