com.supermap.data
Class CoordSysTransParameter
- java.lang.Object
-
- com.supermap.data.CoordSysTransParameter
-
public class CoordSysTransParameter extends java.lang.Object
The CoordSysTransParameter class.
Include panning, rotation and scale factor.
The seven parameters for datum transformation, such as translation, rotate and zoom factors. If the source and target datums are different in projection transformation, it may be necessary to transform from one to another. Generally three-parameter and seven-parameter methods are commonly used to implement datum transformation.
-
-
Constructor Summary
Constructors Constructor and Description CoordSysTransParameter()
Constructs a new CoordSysTransParameter object.CoordSysTransParameter(CoordSysTransParameter coordSysTransParameter)
Constructs a new object identical to the given CoordSysTransParameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description CoordSysTransParameter
clone()
For the clone of CoordSysTransParametervoid
dispose()
Disposes the resources occupied by the object.boolean
fromXML(java.lang.String xml)
Creates a CoordSysTransParameter object with the specified XML string.double
getRotateX()
Returns the rotation angle to the X axis, it is used to convert between different geodetic reference systems, the unit is radian.double
getRotateY()
Returns the rotation angle to the Y axis, it is used to convert between different geodetic reference systems, the unit is radian.double
getRotateZ()
Returns the rotation angle to the Z axis, it is used to convert between different geodetic reference systems, the unit is radian.double
getScaleDifference()
Returns the projection scale difference.double
getTranslateX()
Returns the offset along the X axis.double
getTranslateY()
Returns the offset along the Y axis.double
getTranslateZ()
Returns the offset along the Z axis.void
setRotateX(double value)
Sets the rotation angle to the X axis, it is used to convert between different geodetic reference systems, the unit is radian.void
setRotateY(double value)
Sets the rotation angle to the Y axis, it is used to convert between different geodetic reference systems, the unit is radian.void
setRotateZ(double value)
Sets the rotation angle to the Z axis, it is used to convert between different geodetic reference systems, the unit is radian.void
setScaleDifference(double value)
Sets the projection scale difference.void
setTranslateX(double value)
Sets the offset along the X axis.void
setTranslateY(double value)
Sets the offset along the Y axis.void
setTranslateZ(double value)
Sets the offset along the Z axis.java.lang.String
toXML()
Export the CoordSysTransParameter object to XML string.
-
-
-
Constructor Detail
-
CoordSysTransParameter
public CoordSysTransParameter()
Constructs a new CoordSysTransParameter object.
-
CoordSysTransParameter
public CoordSysTransParameter(CoordSysTransParameter coordSysTransParameter)
Constructs a new object identical to the given CoordSysTransParameter.- Parameters:
coordSysTransParameter
- the given CoordSysTransParameter object.
-
-
Method Detail
-
getTranslateX
public double getTranslateX()
Returns the offset along the X axis. The unit is meters.- Returns:
- the offset along the X axis.
- Default:
- The default value is 0.
-
setTranslateX
public void setTranslateX(double value)
Sets the offset along the X axis. The unit is meters.- Parameters:
value
- the offset along the X axis.
-
getTranslateY
public double getTranslateY()
Returns the offset along the Y axis. The unit is meters.- Returns:
- the offset along the Y axis.
- Default:
- The default value is 0.
-
setTranslateY
public void setTranslateY(double value)
Sets the offset along the Y axis. The unit is meters.- Parameters:
value
- the offset along the Y axis.
-
getTranslateZ
public double getTranslateZ()
Returns the offset along the Z axis. The unit is meters.- Returns:
- the offset along the Z axis.
- Default:
- The default value is 0.
-
setTranslateZ
public void setTranslateZ(double value)
Sets the offset along the Z axis. The unit is meters.- Parameters:
value
- the offset along the Z axis.
-
getRotateX
public double getRotateX()
Returns the rotation angle to the X axis, it is used to convert between different geodetic reference systems, the unit is radian.- Returns:
- the rotation angle to the X axis.
- Default:
- The default value is 0.
-
setRotateX
public void setRotateX(double value)
Sets the rotation angle to the X axis, it is used to convert between different geodetic reference systems, the unit is radian.- Parameters:
value
- the rotation angle to the X axis.
-
getRotateY
public double getRotateY()
Returns the rotation angle to the Y axis, it is used to convert between different geodetic reference systems, the unit is radian.- Returns:
- the rotation angle to the Y axis.
- Default:
- The default value is 0.
-
setRotateY
public void setRotateY(double value)
Sets the rotation angle to the Y axis, it is used to convert between different geodetic reference systems, the unit is radian.- Parameters:
value
- the rotation angle to the Y axis.
-
getRotateZ
public double getRotateZ()
Returns the rotation angle to the Z axis, it is used to convert between different geodetic reference systems, the unit is radian.- Returns:
- the rotation angle to the Z axis.
- Default:
- The default value is 0.
-
setRotateZ
public void setRotateZ(double value)
Sets the rotation angle to the Z axis, it is used to convert between different geodetic reference systems, the unit is radian.- Parameters:
value
- the rotation angle to the Z axis.
-
getScaleDifference
public double getScaleDifference()
Returns the projection scale difference. The unit is 1/1000000. It is used for conversion between different geodetic reference systems.- Returns:
- the projection scale difference.
- Default:
- The default value is 0.
-
setScaleDifference
public void setScaleDifference(double value)
Sets the projection scale difference. The unit is 1/1000000. It is used for conversion between different geodetic reference systems.- Parameters:
value
- the projection scale difference.
-
fromXML
public boolean fromXML(java.lang.String xml)
Creates a CoordSysTransParameter object with the specified XML string. Returns true if successful.- Parameters:
xml
- the specified XML string represents the CoordSysTransParameter object.- Returns:
- Returns true, if successful; otherwise, false.
-
toXML
public java.lang.String toXML()
Export the CoordSysTransParameter object to XML string.- Returns:
- the XML string of the CoordSysTransParameter object.
-
dispose
public void dispose()
Disposes the resources occupied by the object. After calling this method, this object will not be usable.
-
clone
public CoordSysTransParameter clone()
For the clone of CoordSysTransParameter- Overrides:
clone
in classjava.lang.Object
- Returns:
- CoordSysTransParameter
-
-