Package mil.nga.geopackage.tiles
Class TileBoundingBoxJavaUtils
- java.lang.Object
-
- mil.nga.geopackage.tiles.TileBoundingBoxJavaUtils
-
public class TileBoundingBoxJavaUtils extends Object
Tile Bounding Box utility methods for the Java specific library- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description TileBoundingBoxJavaUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ImageRectangleF
getFloatRectangle(long width, long height, BoundingBox boundingBox, BoundingBox boundingBoxSection)
Get a rectangle with floating point boundaries using the tile width, height, bounding box, and the bounding box section within the outer box to build the rectangle fromstatic ImageRectangle
getRectangle(long width, long height, BoundingBox boundingBox, BoundingBox boundingBoxSection)
Get a rectangle using the tile width, height, bounding box, and the bounding box section within the outer box to build the rectangle fromstatic ImageRectangleF
getRoundedFloatRectangle(long width, long height, BoundingBox boundingBox, BoundingBox boundingBoxSection)
Get a rectangle with rounded floating point boundaries using the tile width, height, bounding box, and the bounding box section within the outer box to build the rectangle from
-
-
-
Method Detail
-
getRectangle
public static ImageRectangle getRectangle(long width, long height, BoundingBox boundingBox, BoundingBox boundingBoxSection)
Get a rectangle using the tile width, height, bounding box, and the bounding box section within the outer box to build the rectangle from- Parameters:
width
- widthheight
- heightboundingBox
- full bounding boxboundingBoxSection
- rectangle bounding box section- Returns:
- rectangle
- Since:
- 1.2.0
-
getRoundedFloatRectangle
public static ImageRectangleF getRoundedFloatRectangle(long width, long height, BoundingBox boundingBox, BoundingBox boundingBoxSection)
Get a rectangle with rounded floating point boundaries using the tile width, height, bounding box, and the bounding box section within the outer box to build the rectangle from- Parameters:
width
- widthheight
- heightboundingBox
- full bounding boxboundingBoxSection
- rectangle bounding box section- Returns:
- floating point rectangle
- Since:
- 1.2.0
-
getFloatRectangle
public static ImageRectangleF getFloatRectangle(long width, long height, BoundingBox boundingBox, BoundingBox boundingBoxSection)
Get a rectangle with floating point boundaries using the tile width, height, bounding box, and the bounding box section within the outer box to build the rectangle from- Parameters:
width
- widthheight
- heightboundingBox
- full bounding boxboundingBoxSection
- rectangle bounding box section- Returns:
- floating point rectangle
- Since:
- 1.2.0
-
-