Package mil.nga.geopackage.map.features
Class FeatureInfoBuilder
- java.lang.Object
-
- mil.nga.geopackage.map.features.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 Summary
Constructors Constructor Description FeatureInfoBuilder(Context context, FeatureDao featureDao)ConstructorFeatureInfoBuilder(Context context, FeatureDao featureDao, FeatureTableStyles featureStyles)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbuildResultsInfoMessage(FeatureIndexResults results, double tolerance)Build a feature results information messageStringbuildResultsInfoMessage(FeatureIndexResults results, double tolerance, LatLng clickLocation)Build a feature results information messageStringbuildResultsInfoMessage(FeatureIndexResults results, double tolerance, LatLng clickLocation, float density, double zoom, View view, GoogleMap map, float screenClickPercentage)Build a feature results information messageStringbuildResultsInfoMessage(FeatureIndexResults results, double tolerance, LatLng clickLocation, float density, double zoom, View view, GoogleMap map, float screenClickPercentage, Projection projection)Build a feature results information messageStringbuildResultsInfoMessage(FeatureIndexResults results, double tolerance, LatLng clickLocation, Projection projection)Build a feature results information messageStringbuildResultsInfoMessage(FeatureIndexResults results, double tolerance, Projection projection)Build a feature results information messageStringbuildResultsInfoMessageAndClose(FeatureIndexResults results)Build a feature results information message and close the resultsStringbuildResultsInfoMessageAndClose(FeatureIndexResults results, double tolerance, LatLng clickLocation)Build a feature results information message and close the resultsStringbuildResultsInfoMessageAndClose(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 resultsStringbuildResultsInfoMessageAndClose(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 resultsStringbuildResultsInfoMessageAndClose(FeatureIndexResults results, double tolerance, LatLng clickLocation, Projection projection)Build a feature results information message and close the resultsStringbuildResultsInfoMessageAndClose(FeatureIndexResults results, Projection projection)Build a feature results information message and close the resultsFeatureTableDatabuildTableDataAndClose(FeatureIndexResults results, double tolerance, LatLng clickLocation)Build a feature results information messageFeatureTableDatabuildTableDataAndClose(FeatureIndexResults results, double tolerance, LatLng clickLocation, float density, double zoom, View view, GoogleMap map, float screenClickPercentage)Build a feature results information messageFeatureTableDatabuildTableDataAndClose(FeatureIndexResults results, double tolerance, LatLng clickLocation, float density, double zoom, View view, GoogleMap map, float screenClickPercentage, Projection projection)Build a feature results information messageFeatureTableDatabuildTableDataAndClose(FeatureIndexResults results, double tolerance, LatLng clickLocation, Projection projection)Build a feature results information messageintgetMaxFeatureDetailedInfo()Get the max features in a query to print detailed results aboutintgetMaxPointDetailedInfo()Get the max points in a query to print detailed results aboutStringgetName()Get the name used in textvoidignoreGeometryType(GeometryType geometryType)Ignore the provided geometry typebooleanisDetailedInfoPrintFeatures()Is the detailed info going to print feature geometriesbooleanisDetailedInfoPrintPoints()Is the detailed info going to print point geometriesbooleanisGeodesic()Is geodesic checking enabledvoidprojectGeometry(GeoPackageGeometryData geometryData, Projection projection)Project the geometry into the provided projectionvoidsetDetailedInfoPrintFeatures(boolean detailedInfoPrintFeatures)Set the detailed info to print feature geometriesvoidsetDetailedInfoPrintPoints(boolean detailedInfoPrintPoints)Set the detailed info to print point geometriesvoidsetGeodesic(boolean geodesic)Set the geodesic check flagvoidsetMaxFeatureDetailedInfo(int maxFeatureDetailedInfo)Set the max features in a query to print detailed results aboutvoidsetMaxPointDetailedInfo(int maxPointDetailedInfo)Set the max points in a query to print detailed results aboutvoidsetName(String name)Set the name used in text
-
-
-
Constructor Detail
-
FeatureInfoBuilder
public FeatureInfoBuilder(Context context, FeatureDao featureDao)
Constructor- Parameters:
context- contextfeatureDao- feature dao
-
FeatureInfoBuilder
public FeatureInfoBuilder(Context context, FeatureDao featureDao, FeatureTableStyles featureStyles)
Constructor- Parameters:
context- contextfeatureDao- feature daofeatureStyles- 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 resultsprojection- 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 resultstolerance- distance toleranceclickLocation- 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 resultstolerance- distance toleranceclickLocation- map click locationprojection- 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 resultstolerance- distance toleranceclickLocation- map click locationdensity- display density:DisplayMetrics.densityzoom- current zoom levelview- viewmap- Google MapscreenClickPercentage- 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 resultstolerance- distance toleranceclickLocation- map click locationdensity- display density:DisplayMetrics.densityzoom- current zoom levelview- viewmap- Google MapscreenClickPercentage- screen click percentage between 0.0 and 1.0projection- 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 resultstolerance- 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 resultstolerance- distance toleranceprojection- 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 resultstolerance- distance toleranceclickLocation- 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 resultstolerance- distance toleranceclickLocation- map click locationprojection- 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 resultstolerance- distance toleranceclickLocation- map click locationdensity- display density:DisplayMetrics.densityzoom- current zoom levelview- viewmap- Google MapscreenClickPercentage- 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 resultstolerance- distance toleranceclickLocation- map click locationdensity- display density:DisplayMetrics.densityzoom- current zoom levelview- viewmap- Google MapscreenClickPercentage- screen click percentage between 0.0 and 1.0projection- 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 resultstolerance- distance toleranceclickLocation- 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 resultstolerance- distance toleranceclickLocation- map click locationprojection- 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 resultstolerance- distance toleranceclickLocation- map click locationdensity- display density:DisplayMetrics.densityzoom- current zoom levelview- viewmap- Google MapscreenClickPercentage- 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 resultstolerance- distance toleranceclickLocation- map click locationdensity- display density:DisplayMetrics.densityzoom- current zoom levelview- viewmap- Google MapscreenClickPercentage- screen click percentage between 0.0 and 1.0projection- 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 dataprojection- projection
-
-