com.supermap.data
Class GeoPrimeMeridian
- java.lang.Object
-
- com.supermap.data.GeoPrimeMeridian
-
public class GeoPrimeMeridian extends java.lang.Object
The 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 GeoPrimeMeridian
clone()
Perform clone for GeoPrimeMeridianvoid
dispose()
Disposes the resources occupied by the object.boolean
fromXML(java.lang.String xml)
Constructs theGeoPrimeMeridian
object with the specified XML format string.double
getLongitudeValue()
Returns the prime meridian.java.lang.String
getName()
Returns the name of the PrimeMeridian object.GeoPrimeMeridianType
getType()
Returns the type of the PrimeMeridian object.void
setLongitudeValue(double value)
Sets the prime meridian.void
setName(java.lang.String value)
Sets the name of the PrimeMeridian object.void
setType(GeoPrimeMeridianType value)
Sets the type of the PrimeMeridian object.java.lang.String
toXML()
Returns the XML string represents theGeoPrimeMeridian
object.
-
-
-
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 theGeoPrimeMeridianType
class. System predefined. Users do not need to specified central meridian. Please refer to constantGeoPrimeMeridianType
for settings.- Parameters:
value
- The type of the PrimeMeridian object.
-
fromXML
public boolean fromXML(java.lang.String xml)
Constructs theGeoPrimeMeridian
object 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 theGeoPrimeMeridian
object.- Returns:
- The XML string representing the
GeoPrimeMeridian
object.
-
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:
clone
in classjava.lang.Object
- Returns:
- The clone object of GeoPrimeMeridian
-
-