Class FeaturePreview
- java.lang.Object
-
- mil.nga.geopackage.tiles.features.FeaturePreview
-
public class FeaturePreview extends Object
Feature Preview for drawing a preview tile from a feature table- Since:
- 3.5.0
- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description FeaturePreview(GeoPackage geoPackage, String featureTable)ConstructorFeaturePreview(GeoPackage geoPackage, FeatureDao featureDao)ConstructorFeaturePreview(GeoPackage geoPackage, FeatureTiles featureTiles)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddColumn(String column)Add a query columnvoidaddColumns(String[] columns)Add query columnsvoidaddColumns(Collection<String> columns)Add query columnsvoidappendWhere(String where)Append to the where clauseBufferedImagedraw()Draw a preview imagedoublegetBufferPercentage()Get the buffer percentage for drawing empty non features edges (i.e.Set<String>getColumns()Get the query columnsFeatureTilesgetFeatureTiles()Get the feature tilesGeoPackagegetGeoPackage()Get the GeoPackageIntegergetLimit()Get the feature query limitStringgetWhere()Get the where clauseString[]getWhereArgs()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.voidsetLimit(Integer limit)Set the feature query limitvoidsetManual(boolean manual)Set the manual bounding box query flag for non indexed and empty contents bounds feature tablesvoidsetWhere(String where)Set the where clausevoidsetWhereArgs(String[] whereArgs)Set the where arguments
-
-
-
Constructor Detail
-
FeaturePreview
public FeaturePreview(GeoPackage geoPackage, String featureTable)
Constructor- Parameters:
geoPackage- GeoPackagefeatureTable- feature table
-
FeaturePreview
public FeaturePreview(GeoPackage geoPackage, FeatureDao featureDao)
Constructor- Parameters:
geoPackage- GeoPackagefeatureDao- feature DAO
-
FeaturePreview
public FeaturePreview(GeoPackage geoPackage, FeatureTiles featureTiles)
Constructor- Parameters:
geoPackage- GeoPackagefeatureTiles- feature tiles
-
-
Method Detail
-
getGeoPackage
public GeoPackage getGeoPackage()
Get the GeoPackage- Returns:
- GeoPackage
-
getFeatureTiles
public FeatureTiles 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)
-
addColumns
public void addColumns(Collection<String> columns)
Add query columns- Parameters:
columns- columns
-
addColumns
public void addColumns(String[] columns)
Add query columns- Parameters:
columns- columns
-
addColumn
public void addColumn(String column)
Add a query column- Parameters:
column- column
-
getWhere
public String getWhere()
Get the where clause- Returns:
- where
-
setWhere
public void setWhere(String where)
Set the where clause- Parameters:
where- where
-
appendWhere
public void appendWhere(String where)
Append to the where clause- Parameters:
where- where
-
getWhereArgs
public String[] getWhereArgs()
Get the where arguments- Returns:
- where args
-
setWhereArgs
public void setWhereArgs(String[] whereArgs)
Set the where arguments- Parameters:
whereArgs- where arguments
-
getLimit
public Integer getLimit()
Get the feature query limit- Returns:
- limit
-
setLimit
public void setLimit(Integer limit)
Set the feature query limit- Parameters:
limit- limit
-
draw
public BufferedImage draw()
Draw a preview image- Returns:
- preview image
-
-