Class PrimeMeridian
Object
PrimeMeridian
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Gets the ID of the prime meridian.doubleGets the longitude value of the prime meridian relative to Greenwich.getName()Gets the name of the prime meridian.getUnit()Gets the unit of measurement for the longitude value.voidSets the ID of the prime meridian.voidsetLongitude(double longitude) Sets the longitude value of the prime meridian relative to Greenwich.voidSets the name of the prime meridian.voidSets the unit of measurement for the longitude value.
-
Constructor Details
-
PrimeMeridian
public PrimeMeridian()Creates a new PrimeMeridian with default values.
-
-
Method Details
-
getName
Gets the name of the prime meridian.- Returns:
- The prime meridian name, e.g., "Greenwich"
-
setName
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
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
Sets the unit of measurement for the longitude value.- Parameters:
unit- The unit of measurement
-
getId
Gets the ID of the prime meridian.- Returns:
- The prime meridian ID
-
setId
Sets the ID of the prime meridian.- Parameters:
id- The prime meridian ID
-