congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CoordinateTransformer.transform
Code IndexAdd Tabnine 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)

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

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best plugins for Eclipse
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