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 SummaryConstructorsConstructorDescriptionGeoMapProjectionRegistration(String name, String definition) Creates an instance of aGeoMapProjectionRegistrationrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thedefinitionrecord component.final booleanIndicates whether some other object is "equal to" this one.getName()final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
GeoMapProjectionRegistrationCreates an instance of aGeoMapProjectionRegistrationrecord class.- Parameters:
- name- the value for the- namerecord component
- definition- the value for the- definitionrecord component
 
 
- 
- 
Method Details- 
getName- Specified by:
- getNamein interface- ProjectionRegistration
- Returns:
- the name of the projection, e.g. "EPSG:27700"
 
- 
getDefinition- Specified by:
- getDefinitionin interface- ProjectionRegistration
- Returns:
- the projection definition in PROJ.4 format
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
nameReturns the value of thenamerecord component.- Returns:
- the value of the namerecord component
 
- 
definitionReturns the value of thedefinitionrecord component.- Returns:
- the value of the definitionrecord component
 
 
-