Class PrimeMeridian

Object
PrimeMeridian

public class PrimeMeridian extends Object
Represents a Prime Meridian definition in PROJJSON.

A prime meridian defines the origin of the longitude values in a geographic CRS. It is defined by its name, the longitude value relative to Greenwich, and the unit of measurement.

  • Constructor Details

    • PrimeMeridian

      public PrimeMeridian()
      Creates a new PrimeMeridian with default values.
  • Method Details

    • getName

      public String getName()
      Gets the name of the prime meridian.
      Returns:
      The prime meridian name, e.g., "Greenwich"
    • setName

      public void setName(String name)
      Sets the name of the prime meridian.
      Parameters:
      name - The prime meridian name
    • getLongitude

      public double getLongitude()
      Gets the longitude value of the prime meridian relative to Greenwich.
      Returns:
      The longitude value in the specified unit
    • setLongitude

      public void setLongitude(double longitude)
      Sets the longitude value of the prime meridian relative to Greenwich.
      Parameters:
      longitude - The longitude value in the specified unit
    • getUnit

      public Object getUnit()
      Gets the unit of measurement for the longitude value.

      This can be either a string (for common units like "degree") or a Unit object with detailed unit information.

      Returns:
      The unit of measurement
    • setUnit

      public void setUnit(Object unit)
      Sets the unit of measurement for the longitude value.
      Parameters:
      unit - The unit of measurement
    • getId

      public Object getId()
      Gets the ID of the prime meridian.
      Returns:
      The prime meridian ID
    • setId

      public void setId(Object id)
      Sets the ID of the prime meridian.
      Parameters:
      id - The prime meridian ID