Class FeaturePreview


  • public class FeaturePreview
    extends Object
    Feature Preview for drawing a preview tile from a feature table
    Since:
    3.5.0
    Author:
    osbornb
    • Constructor Detail

      • FeaturePreview

        public FeaturePreview​(GeoPackage geoPackage,
                              String featureTable)
        Constructor
        Parameters:
        geoPackage - GeoPackage
        featureTable - feature table
      • FeaturePreview

        public FeaturePreview​(GeoPackage geoPackage,
                              FeatureDao featureDao)
        Constructor
        Parameters:
        geoPackage - GeoPackage
        featureDao - feature DAO
      • FeaturePreview

        public FeaturePreview​(GeoPackage geoPackage,
                              FeatureTiles featureTiles)
        Constructor
        Parameters:
        geoPackage - GeoPackage
        featureTiles - 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)
      • getColumns

        public Set<String> getColumns()
        Get the query columns
        Returns:
        columns
      • 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