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 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.
      • 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 the GeoPrimeMeridianType class. System predefined. Users do not need to specified central meridian. Please refer to constant GeoPrimeMeridianType for settings.
        Parameters:
        value - The type of the PrimeMeridian object.
      • fromXML

        public boolean fromXML(java.lang.String xml)
        Constructs the GeoPrimeMeridian 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 the GeoPrimeMeridian 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 class java.lang.Object
        Returns:
        The clone object of GeoPrimeMeridian