Codota Logo
CoordinateTransformer.transform
Code IndexAdd Codota to your IDE (free)

How to use
transform
method
in
org.deegree.cs.CoordinateTransformer

Best Java code snippets using org.deegree.cs.CoordinateTransformer.transform (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: deegree/deegree3

private double[] getTransformedCoordinate( ICRS inputCRS, double[] inputCoordinate )
            throws TransformationException, UnknownCRSException {
  if ( inputCRS != null && outputCRS != null && !inputCRS.equals( outputCRS ) ) {
    if ( transformer == null ) {
      throw new UnknownCRSException( outputCRS.getAlias() );
    }
    double[] out = transformer.transform( inputCRS, inputCoordinate, transformedOrdinates );
    return out;
  }
  return inputCoordinate;
}
origin: deegree/deegree3

private double[] getTransformedCoordinate( ICRS inputCRS, double[] inputCoordinate )
            throws TransformationException, UnknownCRSException {
  if ( inputCRS != null && outputCRS != null && !inputCRS.equals( outputCRS ) ) {
    if ( transformer == null ) {
      throw new UnknownCRSException( outputCRS.getAlias() );
    }
    double[] out = transformer.transform( inputCRS, inputCoordinate, transformedOrdinates );
    return out;
  }
  return inputCoordinate;
}
origin: deegree/deegree3

private List<Point3d> transformDstToSrc( ICRS srcCRS, List<Point3d> points )
            throws TransformationException {
  // transform all grid points
  return new CoordinateTransformer( srcCRS ).transform( getTargetCRS(), points );
}
origin: deegree/deegree3

points = t.transform( defWGS, points );
axis0Min = Double.MAX_VALUE;
axis1Min = Double.MAX_VALUE;
origin: deegree/deegree3

/**
 * This method transforms the given coordinate (in the sourceCRS) into a coordinate of the targetCRS and back.
 * 
 * @param coordinate
 *            to be transformed.
 * @param withInverse
 *            true if the inverse has to be calculated.
 * @throws TransformationException
 * @throws IllegalArgumentException
 * @throws UnknownCRSException
 */
public void doTransform( double[] coordinate, boolean withInverse )
            throws IllegalArgumentException, TransformationException, UnknownCRSException {
  CoordinateTransformer ct = new CoordinateTransformer( targetCRS );
  double[] in = Arrays.copyOf( coordinate, 3 );
  // point to transform
  double[] out = new double[3];
  outputPoint( "The original point in crs: " + sourceCRS.getAlias() + ": ", in, sourceCRS );
  ct.transform( sourceCRS, in, out );
  outputPoint( "The transformed point in crs: " + targetCRS.getAlias() + ": ", out, targetCRS );
  if ( withInverse ) {
    // transform back to source CRS
    ct = new CoordinateTransformer( sourceCRS );
    double[] nIn = new double[3];
    ct.transform( targetCRS, out, nIn );
    outputPoint( "The inversed transformed point in crs: " + sourceCRS.getAlias() + ": ", nIn, sourceCRS );
  }
}
org.deegree.csCoordinateTransformertransform

Javadoc

Transforms all points to the CoordinateTransformer's coordinate system.

Popular methods of CoordinateTransformer

  • <init>
    Creates a new CoordinateTransformer object, with the given id as the target CRS.
  • createCRSTransformation
  • getTargetCRS

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JLabel (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
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