Record Class GeoMapProjectionRegistration
java.lang.Object
java.lang.Record
io.jmix.mapsflowui.component.projection.GeoMapProjectionRegistration
- Record Components:
name
- the projection name, e.g. "EPSG:21781"definition
- the projection definition in PROJ.4 format
- All Implemented Interfaces:
ProjectionRegistration
,Serializable
public record GeoMapProjectionRegistration(String name, String definition)
extends Record
implements ProjectionRegistration
Projection registration record. Should be added as bean in Spring configuration file.
For instance:
@Bean public ProjectionRegistration proj21781() { return new GeoMapProjectionRegistration("EPSG:21781", "+proj=somerc +lat_0=46.95240555555556 +lon_0=7.439583333333333 +k_0=1 " + "+x_0=600000 +y_0=200000 +ellps=bessel " + "+towgs84=660.077,13.551,369.344,2.484,1.783,2.939,5.66 +units=m +no_defs"); }
- See Also:
-
Constructor Summary
ConstructorDescriptionGeoMapProjectionRegistration
(String name, String definition) Creates an instance of aGeoMapProjectionRegistration
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefinition
record component.final boolean
Indicates whether some other object is "equal to" this one.getName()
final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GeoMapProjectionRegistration
Creates an instance of aGeoMapProjectionRegistration
record class.- Parameters:
name
- the value for thename
record componentdefinition
- the value for thedefinition
record component
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceProjectionRegistration
- Returns:
- the name of the projection, e.g. "EPSG:27700"
-
getDefinition
- Specified by:
getDefinition
in interfaceProjectionRegistration
- Returns:
- the projection definition in PROJ.4 format
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
definition
Returns the value of thedefinition
record component.- Returns:
- the value of the
definition
record component
-