Package mil.nga.geopackage.map.features
Class FeatureInfoBuilder
java.lang.Object
mil.nga.geopackage.map.features.FeatureInfoBuilder
Feature Info Builder for building feature result based info messages or table data from feature results
- Since:
- 2.0.0
-
Constructor Summary
ConstructorDescriptionFeatureInfoBuilder
(Context context, FeatureDao featureDao) ConstructorFeatureInfoBuilder
(Context context, FeatureDao featureDao, boolean geodesic) ConstructorFeatureInfoBuilder
(Context context, FeatureDao featureDao, FeatureTableStyles featureStyles) ConstructorFeatureInfoBuilder
(Context context, FeatureDao featureDao, FeatureTableStyles featureStyles, boolean geodesic) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbuildResultsInfoMessage
(FeatureIndexResults results, double tolerance) Build a feature results information messagebuildResultsInfoMessage
(FeatureIndexResults results, double tolerance, LatLng clickLocation) Build a feature results information messagebuildResultsInfoMessage
(FeatureIndexResults results, double tolerance, LatLng clickLocation, float density, double zoom, View view, GoogleMap map, float screenClickPercentage) Build a feature results information messagebuildResultsInfoMessage
(FeatureIndexResults results, double tolerance, LatLng clickLocation, float density, double zoom, View view, GoogleMap map, float screenClickPercentage, Projection projection) Build a feature results information messagebuildResultsInfoMessage
(FeatureIndexResults results, double tolerance, LatLng clickLocation, Projection projection) Build a feature results information messagebuildResultsInfoMessage
(FeatureIndexResults results, double tolerance, Projection projection) Build a feature results information messageBuild a feature results information message and close the resultsbuildResultsInfoMessageAndClose
(FeatureIndexResults results, double tolerance, LatLng clickLocation) Build a feature results information message and close the resultsbuildResultsInfoMessageAndClose
(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 resultsbuildResultsInfoMessageAndClose
(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 resultsbuildResultsInfoMessageAndClose
(FeatureIndexResults results, double tolerance, LatLng clickLocation, Projection projection) Build a feature results information message and close the resultsbuildResultsInfoMessageAndClose
(FeatureIndexResults results, Projection projection) Build a feature results information message and close the resultsbuildTableDataAndClose
(FeatureIndexResults results, double tolerance, LatLng clickLocation) Build a feature results information messagebuildTableDataAndClose
(FeatureIndexResults results, double tolerance, LatLng clickLocation, float density, double zoom, View view, GoogleMap map, float screenClickPercentage) Build a feature results information messagebuildTableDataAndClose
(FeatureIndexResults results, double tolerance, LatLng clickLocation, float density, double zoom, View view, GoogleMap map, float screenClickPercentage, Projection projection) Build a feature results information messagebuildTableDataAndClose
(FeatureIndexResults results, double tolerance, LatLng clickLocation, Projection projection) Build a feature results information messageint
Get the max features in a query to print detailed results aboutint
Get the max points in a query to print detailed results aboutgetName()
Get the name used in textvoid
ignoreGeometryType
(GeometryType geometryType) Ignore the provided geometry typeboolean
Is the detailed info going to print feature geometriesboolean
Is the detailed info going to print point geometriesboolean
Is geodesic checking enabledvoid
projectGeometry
(GeoPackageGeometryData geometryData, Projection projection) Project the geometry into the provided projectionvoid
setDetailedInfoPrintFeatures
(boolean detailedInfoPrintFeatures) Set the detailed info to print feature geometriesvoid
setDetailedInfoPrintPoints
(boolean detailedInfoPrintPoints) Set the detailed info to print point geometriesvoid
setGeodesic
(boolean geodesic) Set the geodesic check flagvoid
setMaxFeatureDetailedInfo
(int maxFeatureDetailedInfo) Set the max features in a query to print detailed results aboutvoid
setMaxPointDetailedInfo
(int maxPointDetailedInfo) Set the max points in a query to print detailed results aboutvoid
Set the name used in text
-
Constructor Details
-
FeatureInfoBuilder
Constructor- Parameters:
context
- contextfeatureDao
- feature dao
-
FeatureInfoBuilder
Constructor- Parameters:
context
- contextfeatureDao
- feature daofeatureStyles
- feature table styles- Since:
- 6.3.0
-
FeatureInfoBuilder
Constructor- Parameters:
context
- contextfeatureDao
- feature daogeodesic
- geodesic check flag- Since:
- 6.7.4
-
FeatureInfoBuilder
public FeatureInfoBuilder(Context context, FeatureDao featureDao, FeatureTableStyles featureStyles, boolean geodesic) Constructor- Parameters:
context
- contextfeatureDao
- feature daofeatureStyles
- feature table stylesgeodesic
- geodesic check flag- Since:
- 6.7.4
-
-
Method Details
-
getName
Get the name used in text- Returns:
- name
-
setName
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
Ignore the provided geometry type- Parameters:
geometryType
- geometry type
-
buildResultsInfoMessageAndClose
Build a feature results information message and close the results- Parameters:
results
- feature index results- Returns:
- results message or null if no results
-
buildResultsInfoMessageAndClose
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.density
zoom
- 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.density
zoom
- 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
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.density
zoom
- 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.density
zoom
- 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.density
zoom
- 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.density
zoom
- 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
Project the geometry into the provided projection- Parameters:
geometryData
- geometry dataprojection
- projection
-