/** * Transforms a given coordinate into the CoordinateTransformer's coordinate system. * * @param sourceCRS * crs of the input coordinate, must not be <code>null</code> * @param input * input coordinate, must not be <code>null</code> and array length must match the number of dimensions * of <code>sourceCRS</code> * @param out * output coordinate, used to store the transformed ordinates, must not be <code>null</code> and array * length must match the number of dimensions of the target crs * @return transformed coordinate, this is the same instance as <code>out</code> * @throws TransformationException * @throws IllegalArgumentException */ public double[] transform( ICRS sourceCRS, double[] input, double[] out ) throws IllegalArgumentException, TransformationException { Transformation trans = createCRSTransformation( sourceCRS ); trans.doTransform( input, 0, out, 0, input.length ); return out; } }
return new ArrayList<Point3d>(); Transformation trans = createCRSTransformation( sourceCRS ); if ( TransformationFactory.isIdentity( trans ) ) { return copy;