Class Conversion
Object
Conversion
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).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a conversion method in PROJJSON.static classRepresents a conversion parameter in PROJJSON. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Gets the ID of the conversion.Gets the method used by this conversion.getName()Gets the name of the conversion.Gets the parameters for this conversion.voidSets the ID of the conversion.voidsetMethod(Conversion.Method method) Sets the method used by this conversion.voidSets the name of the conversion.voidsetParameters(List<Conversion.Parameter> parameters) Sets the parameters for this conversion.
-
Constructor Details
-
Conversion
public Conversion()Creates a new Conversion with default values.
-
-
Method Details
-
getName
Gets the name of the conversion.- Returns:
- The conversion name, e.g., "UTM zone 31N"
-
setName
Sets the name of the conversion.- Parameters:
name- The conversion name
-
getMethod
Gets the method used by this conversion.- Returns:
- The conversion method
-
setMethod
Sets the method used by this conversion.- Parameters:
method- The conversion method
-
getParameters
Gets the parameters for this conversion.- Returns:
- The list of conversion parameters
-
setParameters
Sets the parameters for this conversion.- Parameters:
parameters- The list of conversion parameters
-
getId
Gets the ID of the conversion.- Returns:
- The conversion ID
-
setId
Sets the ID of the conversion.- Parameters:
id- The conversion ID
-