Tabnine Logo
BursaWolfParameters.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.sis.referencing.datum.BursaWolfParameters
constructor

Best Java code snippets using org.apache.sis.referencing.datum.BursaWolfParameters.<init> (Showing top 14 results out of 315)

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

/**
 * Creates the {@code TOWGS84} element during parsing of a WKT version 1.
 *
 * @param  values  the 7 Bursa-Wolf parameter values.
 * @return the {@link BursaWolfParameters}.
 *
 * @since 0.6
 */
@Override
public Object createToWGS84(final double[] values) {
  final BursaWolfParameters info = new BursaWolfParameters(CommonCRS.WGS84.datum(), null);
  info.setValues(values);
  return info;
}
origin: apache/sis

/**
 * Creates the {@code TOWGS84} element during parsing of a WKT version 1.
 *
 * @param  values  the 7 Bursa-Wolf parameter values.
 * @return the {@link BursaWolfParameters}.
 *
 * @since 0.6
 */
@Override
public Object createToWGS84(final double[] values) {
  final BursaWolfParameters info = new BursaWolfParameters(CommonCRS.WGS84.datum(), null);
  info.setValues(values);
  return info;
}
origin: org.apache.sis.core/sis-referencing

final BursaWolfParameters parameters = new BursaWolfParameters(null, null);
try {
  parameters.setPositionVectorTransformation(((LinearTransform) step).getMatrix(), BURSAWOLF_TOLERANCE);
origin: apache/sis

final BursaWolfParameters parameters = new BursaWolfParameters(null, null);
try {
  parameters.setPositionVectorTransformation(((LinearTransform) step).getMatrix(), BURSAWOLF_TOLERANCE);
origin: org.apache.sis.core/sis-referencing

  continue;
final BursaWolfParameters bwp = new BursaWolfParameters(datum, info.getDomainOfValidity(owner));
try (ResultSet result = executeQuery("BursaWolfParameters",
  "SELECT PARAMETER_CODE," +
origin: apache/sis

  continue;
final BursaWolfParameters bwp = new BursaWolfParameters(datum, info.getDomainOfValidity(owner));
try (ResultSet result = executeQuery("BursaWolfParameters",
  "SELECT PARAMETER_CODE," +
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>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: org.apache.sis.core/sis-referencing

  throws FactoryException
final BursaWolfParameters parameters = new BursaWolfParameters(null, null);
final Parameters pv = Parameters.castOrWrap(values);
boolean reverseRotation = false;
origin: apache/sis

  throws FactoryException
final BursaWolfParameters parameters = new BursaWolfParameters(null, null);
final Parameters pv = Parameters.castOrWrap(values);
boolean reverseRotation = false;
origin: apache/sis

final BursaWolfParameters parameters = new BursaWolfParameters(null, null);
if (datumShift != null) try {
  parameters.setPositionVectorTransformation(datumShift, BURSAWOLF_TOLERANCE);
origin: org.apache.sis.core/sis-referencing

final BursaWolfParameters parameters = new BursaWolfParameters(null, null);
if (datumShift != null) try {
  parameters.setPositionVectorTransformation(datumShift, BURSAWOLF_TOLERANCE);
origin: apache/sis

/**
 * Tests the {@link BursaWolfParameters#setPositionVectorTransformation(Matrix, double)} method.
 * This is an internal consistency test.
 */
@Test
@DependsOnMethod("testGetPositionVectorTransformation")
public void testSetPositionVectorTransformation() {
  final BursaWolfParameters bursaWolf = createED87_to_WGS84();
  final Matrix matrix = bursaWolf.getPositionVectorTransformation(null);
  final BursaWolfParameters actual = new BursaWolfParameters(
      bursaWolf.getTargetDatum(), bursaWolf.getDomainOfValidity());
  actual.setPositionVectorTransformation(matrix, 1E-10);
  assertEquals(bursaWolf, actual);
}
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;
}
org.apache.sis.referencing.datumBursaWolfParameters<init>

Javadoc

Creates a new instance for the given target datum and domain of validity. All numerical parameters are initialized to 0, which correspond to an identity transform. Callers can assign numerical values to the public fields of interest after construction. For example, many coordinate transformations will provide values only for the translation terms ( #tX, #tY, #tZ).

Alternatively, numerical fields can also be initialized by a call to #setPositionVectorTransformation(Matrix,double).

Popular methods of BursaWolfParameters

  • getTargetDatum
    Returns the target datum for this set of parameters, or null if unknown. This is usually the WGS 84
  • isIdentity
    Returns true if a transformation built from this set of parameters would perform no operation. This
  • isTranslation
    Returns true if a transformation built from this set of parameters would perform only a translation.
  • 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

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top plugins for WebStorm
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