Package mil.nga.geopackage.tiles
Class TileBoundingBoxAndroidUtils
- java.lang.Object
-
- mil.nga.geopackage.tiles.TileBoundingBoxAndroidUtils
-
public class TileBoundingBoxAndroidUtils extends Object
Tile Bounding Box utility methods relying on Android libraries
-
-
Constructor Summary
Constructors Constructor Description TileBoundingBoxAndroidUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RectFgetFloatRectangle(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 RectgetRectangle(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 RectFgetRoundedFloatRectangle(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 fromstatic booleanisValid(Rect rect)Check if the rectangle is validstatic booleanisValid(RectF rectF)Check if the rectangle is validstatic booleanisValidAllowEmpty(Rect rect)Check if the rectangle is valid allowing empty rangesstatic booleanisValidAllowEmpty(RectF rectF)Check if the rectangle is valid allowing empty ranges
-
-
-
Method Detail
-
getRectangle
public static Rect 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
-
getRoundedFloatRectangle
public static RectF 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.3.0
-
getFloatRectangle
public static RectF 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
-
isValid
public static boolean isValid(Rect rect)
Check if the rectangle is valid- Parameters:
rect- rectangle- Returns:
- true if valid
- Since:
- 1.3.1
-
isValidAllowEmpty
public static boolean isValidAllowEmpty(Rect rect)
Check if the rectangle is valid allowing empty ranges- Parameters:
rect- rectangle- Returns:
- true if valid
- Since:
- 1.3.1
-
isValid
public static boolean isValid(RectF rectF)
Check if the rectangle is valid- Parameters:
rectF- rectangle- Returns:
- true if valid
- Since:
- 1.3.1
-
isValidAllowEmpty
public static boolean isValidAllowEmpty(RectF rectF)
Check if the rectangle is valid allowing empty ranges- Parameters:
rectF- rectangle- Returns:
- true if valid
- Since:
- 1.3.1
-
-