com.supermap.data
Class GeoPrimeMeridian
- java.lang.Object
-
- com.supermap.data.GeoPrimeMeridian
-
public class GeoPrimeMeridian extends java.lang.ObjectThe prime meridian class.
The object is mainly used in the geographic coordinate system. The geographic coordinate system consists of three components: the prime meridian, the dataum and the angular unit.
-
-
Constructor Summary
Constructors Constructor and Description GeoPrimeMeridian()Constructs a new GeoPrimeMeridian object.GeoPrimeMeridian(double longitudeValue, java.lang.String name)Creates a new GeoPrimeMeridian object according to the specified arguments.GeoPrimeMeridian(GeoPrimeMeridian geoPrimeMeridian)Initializes a new instance according to the specified GeoPrimeMeridian object.GeoPrimeMeridian(GeoPrimeMeridianType type)Creates a new GeoPrimeMeridian object according to the specified arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description GeoPrimeMeridianclone()Perform clone for GeoPrimeMeridianvoiddispose()Disposes the resources occupied by the object.booleanfromXML(java.lang.String xml)Constructs theGeoPrimeMeridianobject with the specified XML format string.doublegetLongitudeValue()Returns the prime meridian.java.lang.StringgetName()Returns the name of the PrimeMeridian object.GeoPrimeMeridianTypegetType()Returns the type of the PrimeMeridian object.voidsetLongitudeValue(double value)Sets the prime meridian.voidsetName(java.lang.String value)Sets the name of the PrimeMeridian object.voidsetType(GeoPrimeMeridianType value)Sets the type of the PrimeMeridian object.java.lang.StringtoXML()Returns the XML string represents theGeoPrimeMeridianobject.
-
-
-
Constructor Detail
-
GeoPrimeMeridian
public GeoPrimeMeridian()
Constructs a new GeoPrimeMeridian object.
-
GeoPrimeMeridian
public GeoPrimeMeridian(GeoPrimeMeridianType type)
Creates a new GeoPrimeMeridian object according to the specified arguments.- Parameters:
type- The specified GeoPrimeMeridianType object.
-
GeoPrimeMeridian
public GeoPrimeMeridian(double longitudeValue, java.lang.String name)Creates a new GeoPrimeMeridian object according to the specified arguments.- Parameters:
longitudeValue- the specified prime meridian value, in degrees.name- The specified name of the GeoPrimeMeridian object.
-
GeoPrimeMeridian
public GeoPrimeMeridian(GeoPrimeMeridian geoPrimeMeridian)
Initializes a new instance according to the specified GeoPrimeMeridian object.- Parameters:
geoPrimeMeridian- The specified GeoPrimeMeridian object.
-
-
Method Detail
-
getLongitudeValue
public double getLongitudeValue()
Returns the prime meridian. The unit is degrees.- Returns:
- The prime meridian value.
- Default:
- The default value is 0.
-
setLongitudeValue
public void setLongitudeValue(double value)
Sets the prime meridian. The unit is degrees.- Parameters:
value- the prime meridian value.
-
getName
public java.lang.String getName()
Returns the name of the PrimeMeridian object.- Returns:
- The name of the PrimeMeridian object.
- Default:
- The default value is Greenwich .
-
setName
public void setName(java.lang.String value)
Sets the name of the PrimeMeridian object.- Parameters:
value- The name of the PrimeMeridian object.
-
getType
public GeoPrimeMeridianType getType()
Returns the type of the PrimeMeridian object.- Returns:
- The type of the PrimeMeridian object.
- Default:
- The default value is
PRIMEMERIDIAN_GREENWICH
-
setType
public void setType(GeoPrimeMeridianType value)
Sets the type of the PrimeMeridian object. When the parameter of the method is user defined. Users require to specify the central meridian; other values are predefined by SuperMap Objects .Java, users need not to specify it. Refer to theGeoPrimeMeridianTypeclass. System predefined. Users do not need to specified central meridian. Please refer to constantGeoPrimeMeridianTypefor settings.- Parameters:
value- The type of the PrimeMeridian object.
-
fromXML
public boolean fromXML(java.lang.String xml)
Constructs theGeoPrimeMeridianobject with the specified XML format string.- Parameters:
xml- The specified XML string.- Returns:
- Returns true, if successful; otherwise, false.
-
toXML
public java.lang.String toXML()
Returns the XML string represents theGeoPrimeMeridianobject.- Returns:
- The XML string representing the
GeoPrimeMeridianobject.
-
dispose
public void dispose()
Disposes the resources occupied by the object. After calling this method, this object will not be usable.
-
clone
public GeoPrimeMeridian clone()
Perform clone for GeoPrimeMeridian- Overrides:
clonein classjava.lang.Object- Returns:
- The clone object of GeoPrimeMeridian
-
-