Class Projection
java.lang.Object
io.jmix.mapsflowui.kit.component.model.Projection
- All Implemented Interfaces:
CRS,Serializable
Projection definition class.
For more details see: Projection docs
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()getName()getUnits()voidsetAxisOrientation(String axisOrientation) Sets the axis orientation as specified in Proj4.voidSets the bounding extent that validity for the SRS.voidSets whether the projection is valid for the whole globe.voidsetMetersPerUnit(Double metersPerUnit) Sets the meters per unit for the SRS.voidSets the units.voidsetWorldExtent(Extent worldExtent) Sets the world extent for the SRS.withAxisOrientation(String axisOrientation) withExtent(Extent extent) SeesetExtent(Extent).withGlobal(Boolean global) SeesetGlobal(Boolean).withMetersPerUnit(Double metersPerUnit) SeesetUnits(Units).withWorldExtent(Extent worldExtent)
-
Field Details
-
code
-
units
-
extent
-
axisOrientation
-
global
-
metersPerUnit
-
worldExtent
-
-
Constructor Details
-
Projection
Inits instance with provided projection code.- Parameters:
code- the SRS identifier code, e.g. "EPSG:3857".
-
-
Method Details
-
getCode
- Returns:
- the SRS identifier code
-
getUnits
- Returns:
- units or
nullif not set
-
setUnits
Sets the units.For more details see: Projection docs
- Parameters:
units- units to set
-
withUnits
SeesetUnits(Units).- Parameters:
units- units to set- Returns:
- current instance
-
getExtent
- Returns:
- extent or
nullif not set
-
setExtent
Sets the bounding extent that validity for the SRS.For more details see: setExtent() docs
- Parameters:
extent- extent to set
-
withExtent
SeesetExtent(Extent).- Parameters:
extent- extent to set- Returns:
- current instance
-
getAxisOrientation
- Returns:
- axis orientation or
nullif not set
-
setAxisOrientation
Sets the axis orientation as specified in Proj4. For instance: "enu", "neu", etc.For more details see: Projection docs
- Parameters:
axisOrientation- axis orientation value
-
withAxisOrientation
- Parameters:
axisOrientation- axis orientation value- Returns:
- current instance
-
getGlobal
- Returns:
- is projection valid for the whole globe or
nullif not set
-
setGlobal
Sets whether the projection is valid for the whole globe.For more details see: setGlobal() docs
- Parameters:
global- global option
-
withGlobal
SeesetGlobal(Boolean).- Parameters:
global- global option- Returns:
- current instance
-
getMetersPerUnit
- Returns:
- meters per unit or
nullif not set
-
setMetersPerUnit
Sets the meters per unit for the SRS.For more details see: Projection docs
- Parameters:
metersPerUnit- meters per unit
-
withMetersPerUnit
- Parameters:
metersPerUnit- meters per unit- Returns:
- current instance
-
getWorldExtent
- Returns:
- world extent or
nullif not set
-
setWorldExtent
Sets the world extent for the SRS.For more details see: setWorldExtent() docs
- Parameters:
worldExtent- world extent
-
withWorldExtent
- Parameters:
worldExtent- world extent- Returns:
- current instance
-
getName
-