Object
Conversion

public class Conversion extends Object
Represents a Conversion (map projection) in PROJJSON.

A conversion defines the mathematical transformation from one coordinate system to another. In the context of a projected CRS, it represents the map projection that transforms geographic coordinates (latitude/longitude) into projected coordinates (easting/northing).

  • Constructor Details

    • Conversion

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

    • getName

      public String getName()
      Gets the name of the conversion.
      Returns:
      The conversion name, e.g., "UTM zone 31N"
    • setName

      public void setName(String name)
      Sets the name of the conversion.
      Parameters:
      name - The conversion name
    • getMethod

      public Conversion.Method getMethod()
      Gets the method used by this conversion.
      Returns:
      The conversion method
    • setMethod

      public void setMethod(Conversion.Method method)
      Sets the method used by this conversion.
      Parameters:
      method - The conversion method
    • getParameters

      public List<Conversion.Parameter> getParameters()
      Gets the parameters for this conversion.
      Returns:
      The list of conversion parameters
    • setParameters

      public void setParameters(List<Conversion.Parameter> parameters)
      Sets the parameters for this conversion.
      Parameters:
      parameters - The list of conversion parameters
    • getId

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

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