Class FeaturePreview
java.lang.Object
mil.nga.geopackage.tiles.features.FeaturePreview
Feature Preview for drawing a preview tile from a feature table
- Since:
- 3.5.0
-
Constructor Summary
ConstructorDescriptionFeaturePreview
(Context context, GeoPackage geoPackage, String featureTable) ConstructorFeaturePreview
(Context context, GeoPackage geoPackage, FeatureDao featureDao) ConstructorFeaturePreview
(GeoPackage geoPackage, FeatureTiles featureTiles) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a query columnvoid
addColumns
(String[] columns) Add query columnsvoid
addColumns
(Collection<String> columns) Add query columnsvoid
appendWhere
(String where) Append to the where clausevoid
close()
Close the feature tiles connectiondraw()
Draw a preview imagedouble
Get the buffer percentage for drawing empty non features edges (i.e.Get the query columnsGet the feature tilesGet the GeoPackagegetLimit()
Get the feature query limitgetWhere()
Get the where clauseString[]
Get the where argumentsboolean
isManual()
Is manual bounding box query enabled for non indexed and empty contents bounds feature tablesvoid
setBufferPercentage
(double bufferPercentage) Set the buffer percentage for drawing empty non features edges (i.e.void
Set the feature query limitvoid
setManual
(boolean manual) Set the manual bounding box query flag for non indexed and empty contents bounds feature tablesvoid
Set the where clausevoid
setWhereArgs
(String[] whereArgs) Set the where arguments
-
Constructor Details
-
FeaturePreview
Constructor- Parameters:
context
- contextgeoPackage
- GeoPackagefeatureTable
- feature table
-
FeaturePreview
Constructor- Parameters:
context
- contextgeoPackage
- GeoPackagefeatureDao
- feature DAO
-
FeaturePreview
Constructor- Parameters:
geoPackage
- GeoPackagefeatureTiles
- feature tiles
-
-
Method Details
-
getGeoPackage
Get the GeoPackage- Returns:
- GeoPackage
-
getFeatureTiles
Get the feature tiles- Returns:
- feature tiles
-
isManual
public boolean isManual()Is manual bounding box query enabled for non indexed and empty contents bounds feature tables- Returns:
- manual flag
-
setManual
public void setManual(boolean manual) Set the manual bounding box query flag for non indexed and empty contents bounds feature tables- Parameters:
manual
- manual flag
-
getBufferPercentage
public double getBufferPercentage()Get the buffer percentage for drawing empty non features edges (i.e. 0.1 equals 10% buffer edges)- Returns:
- buffer percentage (greater than or equal to 0.0 and less than 0.5)
-
setBufferPercentage
public void setBufferPercentage(double bufferPercentage) Set the buffer percentage for drawing empty non features edges (i.e. 0.1 equals 10% buffer edges)- Parameters:
bufferPercentage
- buffer percentage (greater than or equal to 0.0 and less than 0.5)
-
getColumns
Get the query columns- Returns:
- columns
-
addColumns
Add query columns- Parameters:
columns
- columns
-
addColumns
Add query columns- Parameters:
columns
- columns
-
addColumn
Add a query column- Parameters:
column
- column
-
getWhere
Get the where clause- Returns:
- where
-
setWhere
Set the where clause- Parameters:
where
- where
-
appendWhere
Append to the where clause- Parameters:
where
- where
-
getWhereArgs
Get the where arguments- Returns:
- where args
-
setWhereArgs
Set the where arguments- Parameters:
whereArgs
- where arguments
-
getLimit
Get the feature query limit- Returns:
- limit
-
setLimit
Set the feature query limit- Parameters:
limit
- limit
-
draw
Draw a preview image- Returns:
- preview image
-
close
public void close()Close the feature tiles connection
-