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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCode()
getName()
getUnits()
void
setAxisOrientation
(String axisOrientation) Sets the axis orientation as specified in Proj4.void
Sets the bounding extent that validity for the SRS.void
Sets whether the projection is valid for the whole globe.void
setMetersPerUnit
(Double metersPerUnit) Sets the meters per unit for the SRS.void
Sets the units.void
setWorldExtent
(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
null
if 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
null
if 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
null
if 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
null
if 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
null
if 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
null
if 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
-