Class FeatureInfoBuilder


  • public class FeatureInfoBuilder
    extends Object
    Feature Info Builder for building feature result based info messages or table data from feature results
    Since:
    2.0.0
    • Constructor Detail

      • FeatureInfoBuilder

        public FeatureInfoBuilder​(Context context,
                                  FeatureDao featureDao)
        Constructor
        Parameters:
        context - context
        featureDao - feature dao
      • FeatureInfoBuilder

        public FeatureInfoBuilder​(Context context,
                                  FeatureDao featureDao,
                                  FeatureTableStyles featureStyles)
        Constructor
        Parameters:
        context - context
        featureDao - feature dao
        featureStyles - feature table styles
        Since:
        6.3.0
    • Method Detail

      • getName

        public String getName()
        Get the name used in text
        Returns:
        name
      • setName

        public void setName​(String name)
        Set the name used in text
        Parameters:
        name - table reference name
      • getMaxPointDetailedInfo

        public int getMaxPointDetailedInfo()
        Get the max points in a query to print detailed results about
        Returns:
        max point detailed info
      • setMaxPointDetailedInfo

        public void setMaxPointDetailedInfo​(int maxPointDetailedInfo)
        Set the max points in a query to print detailed results about
        Parameters:
        maxPointDetailedInfo - max number of points to include detailed information about
      • getMaxFeatureDetailedInfo

        public int getMaxFeatureDetailedInfo()
        Get the max features in a query to print detailed results about
        Returns:
        max feature detailed info
      • setMaxFeatureDetailedInfo

        public void setMaxFeatureDetailedInfo​(int maxFeatureDetailedInfo)
        Set the max features in a query to print detailed results about
        Parameters:
        maxFeatureDetailedInfo - max number of features to include detailed information about
      • isDetailedInfoPrintPoints

        public boolean isDetailedInfoPrintPoints()
        Is the detailed info going to print point geometries
        Returns:
        detailed info print points flag
      • setDetailedInfoPrintPoints

        public void setDetailedInfoPrintPoints​(boolean detailedInfoPrintPoints)
        Set the detailed info to print point geometries
        Parameters:
        detailedInfoPrintPoints - true to include detailed info on point geometries
      • isDetailedInfoPrintFeatures

        public boolean isDetailedInfoPrintFeatures()
        Is the detailed info going to print feature geometries
        Returns:
        detailed info print features flag
      • setDetailedInfoPrintFeatures

        public void setDetailedInfoPrintFeatures​(boolean detailedInfoPrintFeatures)
        Set the detailed info to print feature geometries
        Parameters:
        detailedInfoPrintFeatures - true to include detailed info on feature geometries
      • isGeodesic

        public boolean isGeodesic()
        Is geodesic checking enabled
        Returns:
        true if geodesic
      • setGeodesic

        public void setGeodesic​(boolean geodesic)
        Set the geodesic check flag
        Parameters:
        geodesic - true for geodesic checking
      • ignoreGeometryType

        public void ignoreGeometryType​(GeometryType geometryType)
        Ignore the provided geometry type
        Parameters:
        geometryType - geometry type
      • buildResultsInfoMessageAndClose

        public String buildResultsInfoMessageAndClose​(FeatureIndexResults results)
        Build a feature results information message and close the results
        Parameters:
        results - feature index results
        Returns:
        results message or null if no results
      • buildResultsInfoMessageAndClose

        public String buildResultsInfoMessageAndClose​(FeatureIndexResults results,
                                                      Projection projection)
        Build a feature results information message and close the results
        Parameters:
        results - feature index results
        projection - desired geometry projection
        Returns:
        results message or null if no results
      • buildResultsInfoMessageAndClose

        public String buildResultsInfoMessageAndClose​(FeatureIndexResults results,
                                                      double tolerance,
                                                      LatLng clickLocation)
        Build a feature results information message and close the results
        Parameters:
        results - feature index results
        tolerance - distance tolerance
        clickLocation - map click location
        Returns:
        results message or null if no results
      • buildResultsInfoMessageAndClose

        public String buildResultsInfoMessageAndClose​(FeatureIndexResults results,
                                                      double tolerance,
                                                      LatLng clickLocation,
                                                      Projection projection)
        Build a feature results information message and close the results
        Parameters:
        results - feature index results
        tolerance - distance tolerance
        clickLocation - map click location
        projection - desired geometry projection
        Returns:
        results message or null if no results
      • buildResultsInfoMessageAndClose

        public String buildResultsInfoMessageAndClose​(FeatureIndexResults results,
                                                      double tolerance,
                                                      LatLng clickLocation,
                                                      float density,
                                                      double zoom,
                                                      View view,
                                                      GoogleMap map,
                                                      float screenClickPercentage)
        Build a feature results information message and close the results
        Parameters:
        results - feature index results
        tolerance - distance tolerance
        clickLocation - map click location
        density - display density: DisplayMetrics.density
        zoom - current zoom level
        view - view
        map - Google Map
        screenClickPercentage - screen click percentage between 0.0 and 1.0
        Returns:
        results message or null if no results
        Since:
        6.3.0
      • buildResultsInfoMessageAndClose

        public String buildResultsInfoMessageAndClose​(FeatureIndexResults results,
                                                      double tolerance,
                                                      LatLng clickLocation,
                                                      float density,
                                                      double zoom,
                                                      View view,
                                                      GoogleMap map,
                                                      float screenClickPercentage,
                                                      Projection projection)
        Build a feature results information message and close the results
        Parameters:
        results - feature index results
        tolerance - distance tolerance
        clickLocation - map click location
        density - display density: DisplayMetrics.density
        zoom - current zoom level
        view - view
        map - Google Map
        screenClickPercentage - screen click percentage between 0.0 and 1.0
        projection - desired geometry projection
        Returns:
        results message or null if no results
        Since:
        6.3.0
      • buildResultsInfoMessage

        public String buildResultsInfoMessage​(FeatureIndexResults results,
                                              double tolerance)
        Build a feature results information message
        Parameters:
        results - feature index results
        tolerance - distance tolerance
        Returns:
        results message or null if no results
      • buildResultsInfoMessage

        public String buildResultsInfoMessage​(FeatureIndexResults results,
                                              double tolerance,
                                              Projection projection)
        Build a feature results information message
        Parameters:
        results - feature index results
        tolerance - distance tolerance
        projection - desired geometry projection
        Returns:
        results message or null if no results
      • buildResultsInfoMessage

        public String buildResultsInfoMessage​(FeatureIndexResults results,
                                              double tolerance,
                                              LatLng clickLocation)
        Build a feature results information message
        Parameters:
        results - feature index results
        tolerance - distance tolerance
        clickLocation - map click location
        Returns:
        results message or null if no results
      • buildResultsInfoMessage

        public String buildResultsInfoMessage​(FeatureIndexResults results,
                                              double tolerance,
                                              LatLng clickLocation,
                                              Projection projection)
        Build a feature results information message
        Parameters:
        results - feature index results
        tolerance - distance tolerance
        clickLocation - map click location
        projection - desired geometry projection
        Returns:
        results message or null if no results
      • buildResultsInfoMessage

        public String buildResultsInfoMessage​(FeatureIndexResults results,
                                              double tolerance,
                                              LatLng clickLocation,
                                              float density,
                                              double zoom,
                                              View view,
                                              GoogleMap map,
                                              float screenClickPercentage)
        Build a feature results information message
        Parameters:
        results - feature index results
        tolerance - distance tolerance
        clickLocation - map click location
        density - display density: DisplayMetrics.density
        zoom - current zoom level
        view - view
        map - Google Map
        screenClickPercentage - screen click percentage between 0.0 and 1.0
        Returns:
        results message or null if no results
        Since:
        6.3.0
      • buildResultsInfoMessage

        public String buildResultsInfoMessage​(FeatureIndexResults results,
                                              double tolerance,
                                              LatLng clickLocation,
                                              float density,
                                              double zoom,
                                              View view,
                                              GoogleMap map,
                                              float screenClickPercentage,
                                              Projection projection)
        Build a feature results information message
        Parameters:
        results - feature index results
        tolerance - distance tolerance
        clickLocation - map click location
        density - display density: DisplayMetrics.density
        zoom - current zoom level
        view - view
        map - Google Map
        screenClickPercentage - screen click percentage between 0.0 and 1.0
        projection - desired geometry projection
        Returns:
        results message or null if no results
        Since:
        6.3.0
      • buildTableDataAndClose

        public FeatureTableData buildTableDataAndClose​(FeatureIndexResults results,
                                                       double tolerance,
                                                       LatLng clickLocation)
        Build a feature results information message
        Parameters:
        results - feature index results
        tolerance - distance tolerance
        clickLocation - map click location
        Returns:
        feature table data or null if not results
      • buildTableDataAndClose

        public FeatureTableData buildTableDataAndClose​(FeatureIndexResults results,
                                                       double tolerance,
                                                       LatLng clickLocation,
                                                       Projection projection)
        Build a feature results information message
        Parameters:
        results - feature index results
        tolerance - distance tolerance
        clickLocation - map click location
        projection - desired geometry projection
        Returns:
        feature table data or null if not results
      • buildTableDataAndClose

        public FeatureTableData buildTableDataAndClose​(FeatureIndexResults results,
                                                       double tolerance,
                                                       LatLng clickLocation,
                                                       float density,
                                                       double zoom,
                                                       View view,
                                                       GoogleMap map,
                                                       float screenClickPercentage)
        Build a feature results information message
        Parameters:
        results - feature index results
        tolerance - distance tolerance
        clickLocation - map click location
        density - display density: DisplayMetrics.density
        zoom - current zoom level
        view - view
        map - Google Map
        screenClickPercentage - screen click percentage between 0.0 and 1.0
        Returns:
        feature table data or null if not results
        Since:
        6.3.0
      • buildTableDataAndClose

        public FeatureTableData buildTableDataAndClose​(FeatureIndexResults results,
                                                       double tolerance,
                                                       LatLng clickLocation,
                                                       float density,
                                                       double zoom,
                                                       View view,
                                                       GoogleMap map,
                                                       float screenClickPercentage,
                                                       Projection projection)
        Build a feature results information message
        Parameters:
        results - feature index results
        tolerance - distance tolerance
        clickLocation - map click location
        density - display density: DisplayMetrics.density
        zoom - current zoom level
        view - view
        map - Google Map
        screenClickPercentage - screen click percentage between 0.0 and 1.0
        projection - desired geometry projection
        Returns:
        feature table data or null if not results
        Since:
        6.3.0
      • projectGeometry

        public void projectGeometry​(GeoPackageGeometryData geometryData,
                                    Projection projection)
        Project the geometry into the provided projection
        Parameters:
        geometryData - geometry data
        projection - projection