Class BBOX
- java.lang.Object
-
- org.gcube.spatial.data.geoutility.shared.BBOX
-
- All Implemented Interfaces:
Serializable
public class BBOX extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBBOX.COORDINATE_FORMAT
-
Field Summary
Fields Modifier and Type Field Description static StringBBOX_Separator
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCrs()Gets the crs.doublegetLowerLeftX()Gets the lower left X.doublegetLowerLeftY()Gets the lower left Y.doublegetUpperRightX()Gets the upper right X.doublegetUpperRightY()Gets the upper right Y.voidsetCrs(String crs)Sets the crs.voidsetLowerLeftX(double lowerLeftX)Sets the lower left X.voidsetLowerLeftY(double lowerLeftY)Sets the lower left Y.voidsetUpperRightX(double upperRightX)Sets the upper right X.voidsetUpperRightY(double upperRightY)Sets the upper right Y.StringtoBBOXString(BBOX.COORDINATE_FORMAT format)static StringtoBBOXString(BBOX extBBOX, BBOX.COORDINATE_FORMAT format)StringtoString()
-
-
-
Field Detail
-
BBOX_Separator
public static final String BBOX_Separator
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BBOX
public BBOX()
-
BBOX
public BBOX(String bbox, BBOX.COORDINATE_FORMAT format)
Instantiates a new bbox.- Parameters:
bbox- the bbox as [minX,minY,maxX,maxY] XY (e.g. when service version is 1.1.0). The bbox as [minY,minX,maxY,maxX] YZ (e.g. when service version is 1.3.0)serviceVersion- the service version
-
BBOX
public BBOX(double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY, String crs)
-
-
Method Detail
-
toBBOXString
public String toBBOXString(BBOX.COORDINATE_FORMAT format)
-
toBBOXString
public static String toBBOXString(BBOX extBBOX, BBOX.COORDINATE_FORMAT format)
-
getLowerLeftX
public double getLowerLeftX()
Gets the lower left X.- Returns:
- the lower left X
-
setLowerLeftX
public void setLowerLeftX(double lowerLeftX)
Sets the lower left X.- Parameters:
lowerLeftX- the new lower left X
-
getLowerLeftY
public double getLowerLeftY()
Gets the lower left Y.- Returns:
- the lower left Y
-
setLowerLeftY
public void setLowerLeftY(double lowerLeftY)
Sets the lower left Y.- Parameters:
lowerLeftY- the new lower left Y
-
getUpperRightX
public double getUpperRightX()
Gets the upper right X.- Returns:
- the upper right X
-
setUpperRightX
public void setUpperRightX(double upperRightX)
Sets the upper right X.- Parameters:
upperRightX- the new upper right X
-
getUpperRightY
public double getUpperRightY()
Gets the upper right Y.- Returns:
- the upper right Y
-
setUpperRightY
public void setUpperRightY(double upperRightY)
Sets the upper right Y.- Parameters:
upperRightY- the new upper right Y
-
getCrs
public String getCrs()
Gets the crs.- Returns:
- the crs
-
setCrs
public void setCrs(String crs)
Sets the crs.- Parameters:
crs- the new crs
-
-