|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.referencing.wkt.Formattable
org.geotools.referencing.operation.transform.AbstractMathTransform
org.geotools.referencing.operation.transform.NZMGTransform
Implementation of the nzmg (New Zealand Map Grid) projection.
This is an implementation of algorithm published by Land Information New Zealand. The algorithm is documented here.
Nested Class Summary | |
static class |
NZMGTransform.Provider
The provider for NZMGTransform . |
Field Summary | |
static double[][] |
A
|
static double[][] |
B
|
static double[] |
tphi
|
static double[] |
tpsi
|
Constructor Summary | |
NZMGTransform()
|
Method Summary | |
protected double[] |
add(double[] c1,
double[] c2)
Adds to complex numbers. |
protected double[] |
divide(double[] c1,
double[] c2)
Divides one complex number by another. |
int |
getSourceDimensions()
Gets the dimension of input points. |
int |
getTargetDimensions()
Gets the dimension of output points. |
org.opengis.referencing.operation.MathTransform |
inverse()
Creates the inverse transform of this object. |
void |
inverseTransform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
|
protected double[] |
multiply(double[] c,
double s)
Multiplies a complex number by a scalar. |
protected double[] |
multiply(double[] c1,
double[] c2)
Multplies two complex numbers. |
protected double[] |
power(double[] c,
int power)
Computes the integer power of a complex number up to 6. |
void |
setCentralMeridian(double value)
|
void |
setFalseEasting(double value)
|
void |
setLatitudeOfOrigin(double value)
|
void |
setNorthEasting(double value)
|
void |
setSemiMajorAxis(double value)
|
void |
transform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
|
Methods inherited from class org.geotools.referencing.operation.transform.AbstractMathTransform |
createTransformedShape, derivative, derivative, ensureNonNull, equals, formatWKT, getDimSource, getDimTarget, getParameterDescriptors, getParameterValues, hashCode, isIdentity, needCopy, rollLongitude, transform, transform, transform |
Methods inherited from class org.geotools.referencing.wkt.Formattable |
toString, toWKT, toWKT, toWKT |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.referencing.operation.MathTransform2D |
createTransformedShape, derivative, transform |
Methods inherited from interface org.opengis.referencing.operation.MathTransform |
derivative, getDimSource, getDimTarget, isIdentity, toWKT, transform, transform |
Field Detail |
public static double[][] A
public static double[][] B
public static double[] tphi
public static double[] tpsi
Constructor Detail |
public NZMGTransform()
Method Detail |
public int getSourceDimensions()
AbstractMathTransform
getSourceDimensions
in interface org.opengis.referencing.operation.MathTransform
getSourceDimensions
in class AbstractMathTransform
public int getTargetDimensions()
AbstractMathTransform
getTargetDimensions
in interface org.opengis.referencing.operation.MathTransform
getTargetDimensions
in class AbstractMathTransform
public void setSemiMajorAxis(double value)
public void setLatitudeOfOrigin(double value)
public void setCentralMeridian(double value)
public void setFalseEasting(double value)
public void setNorthEasting(double value)
public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws org.opengis.referencing.operation.TransformException
transform
in interface org.opengis.referencing.operation.MathTransform
org.opengis.referencing.operation.TransformException
public void inverseTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
public org.opengis.referencing.operation.MathTransform inverse() throws org.opengis.referencing.operation.NoninvertibleTransformException
AbstractMathTransform
NoninvertibleTransformException
otherwise. Subclasses
should override this method.
inverse
in interface org.opengis.referencing.operation.MathTransform
inverse
in class AbstractMathTransform
org.opengis.referencing.operation.NoninvertibleTransformException
protected double[] multiply(double[] c1, double[] c2)
c1
- DOCUMENT ME!c2
- DOCUMENT ME!
protected double[] multiply(double[] c, double s)
c
- DOCUMENT ME!s
- DOCUMENT ME!
protected double[] divide(double[] c1, double[] c2)
c1
- DOCUMENT ME!c2
- DOCUMENT ME!
protected double[] add(double[] c1, double[] c2)
c1
- DOCUMENT ME!c2
- DOCUMENT ME!
protected double[] power(double[] c, int power)
c
- DOCUMENT ME!power
- DOCUMENT ME!
java.lang.IllegalArgumentException
- DOCUMENT ME!
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |