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
ConstructorsConstructorDescriptionFeaturePreview(android.content.Context context, GeoPackage geoPackage, String featureTable) ConstructorFeaturePreview(android.content.Context context, GeoPackage geoPackage, FeatureDao featureDao) ConstructorFeaturePreview(GeoPackage geoPackage, FeatureTiles featureTiles) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a query columnvoidaddColumns(String[] columns) Add query columnsvoidaddColumns(Collection<String> columns) Add query columnsvoidappendWhere(String where) Append to the where clausevoidclose()Close the feature tiles connectionandroid.graphics.Bitmapdraw()Draw a preview imagedoubleGet 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 argumentsbooleanisManual()Is manual bounding box query enabled for non indexed and empty contents bounds feature tablesvoidsetBufferPercentage(double bufferPercentage) Set the buffer percentage for drawing empty non features edges (i.e.voidSet the feature query limitvoidsetManual(boolean manual) Set the manual bounding box query flag for non indexed and empty contents bounds feature tablesvoidSet the where clausevoidsetWhereArgs(String[] whereArgs) Set the where arguments
-
Constructor Details
-
FeaturePreview
Constructor- Parameters:
context- contextgeoPackage- GeoPackagefeatureTable- feature table
-
FeaturePreview
public FeaturePreview(android.content.Context context, GeoPackage geoPackage, FeatureDao featureDao) 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
public android.graphics.Bitmap draw()Draw a preview image- Returns:
- preview image
-
close
public void close()Close the feature tiles connection
-