GPKGFeatureInfoBuilder
Objective-C
@interface GPKGFeatureInfoBuilder : NSObject
/**
* Table name used when building text
*/
@property (nonatomic, strong) NSString * name;
/**
* Max number of points clicked to return detailed information about
*/
@property (nonatomic) int maxPointDetailedInfo;
/**
* Max number of features clicked to return detailed information about
*/
@property (nonatomic) int maxFeatureDetailedInfo;
/**
* Print Point geometries within detailed info when true
*/
@property (nonatomic) BOOL detailedInfoPrintPoints;
/**
* Print Feature geometries within detailed info when true
*/
@property (nonatomic) BOOL detailedInfoPrintFeatures;
/**
* Query geometries using geodesic lines
*/
@property (nonatomic) BOOL geodesic;
/**
* Initializer
*
* @param featureDao feature dao
*/
-(instancetype) initWithFeatureDao: (GPKGFeatureDao *) featureDao;
/**
* Initializer
*
* @param featureDao feature dao
* @param featureStyles feature table styles
*/
-(instancetype) initWithFeatureDao: (GPKGFeatureDao *) featureDao andStyles: (GPKGFeatureTableStyles *) featureStyles;
/**
* Initializer
*
* @param featureDao feature dao
* @param geodesic geodesic check flag
*/
-(instancetype) initWithFeatureDao: (GPKGFeatureDao *) featureDao andGeodesic: (BOOL) geodesic;
/**
* Initializer
*
* @param featureDao feature dao
* @param featureStyles feature table styles
* @param geodesic geodesic check flag
*/
-(instancetype) initWithFeatureDao: (GPKGFeatureDao *) featureDao andStyles: (GPKGFeatureTableStyles *) featureStyles andGeodesic: (BOOL) geodesic;
/**
* Get the geometry type
*
* @return geometry type
*/
-(enum SFGeometryType) geometryType;
/**
* Add a geomtetry type to ignore
*
* @param geometryType geometry type
*/
-(void) ignoreGeometryType: (enum SFGeometryType) geometryType;
/**
* Build a feature results information message and close the results
*
* @param results feature index results
*
* @return results message or null if no results
*/
-(NSString *) buildResultsInfoMessageAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *) results;
/**
* Build a feature results information message and close the results
*
* @param results feature index results
* @param projection desired geometry projection
*
* @return results message or null if no results
*/
-(NSString *) buildResultsInfoMessageAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *) results andProjection: (PROJProjection *) projection;
/**
* Build a feature results information message
*
* @param results feature index results
* @param tolerance distance and screen tolerance
* @param point point
*
* @return results message or null if no results
*/
-(NSString *) buildResultsInfoMessageAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *) results andTolerance: (GPKGMapTolerance *) tolerance andPoint: (SFPoint *) point;
/**
* Build a feature results information message
*
* @param results feature index results
* @param tolerance distance and screen tolerance
* @param point point
* @param projection desired geometry projection
*
* @return results message or null if no results
*/
-(NSString *) buildResultsInfoMessageAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *) results andTolerance: (GPKGMapTolerance *) tolerance andPoint: (SFPoint *) point andProjection: (PROJProjection *) projection;
/**
* Build a feature results information message
*
* @param results feature index results
* @param tolerance distance and screen tolerance
* @param locationCoordinate location coordinate
*
* @return results message or null if no results
*/
-(NSString *) buildResultsInfoMessageAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *) results andTolerance: (GPKGMapTolerance *) tolerance andLocationCoordinate: (CLLocationCoordinate2D) locationCoordinate;
/**
* Build a feature results information message
*
* @param results feature index results
* @param tolerance distance and screen tolerance
* @param locationCoordinate location coordinate
* @param projection desired geometry projection
*
* @return results message or null if no results
*/
-(NSString *) buildResultsInfoMessageAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *) results andTolerance: (GPKGMapTolerance *) tolerance andLocationCoordinate: (CLLocationCoordinate2D) locationCoordinate andProjection: (PROJProjection *) projection;
/**
* Build a feature results information message
*
* @param results feature index results
* @param tolerance distance and screen tolerance
* @param locationCoordinate location coordinate
* @param scale scale factor
* @param zoom current zoom level
* @param mapView map view
* @param screenClickPercentage screen click percentage between 0.0 and 1.0
*
* @return results message or null if no results
*/
-(NSString *) buildResultsInfoMessageAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *) results andTolerance: (GPKGMapTolerance *) tolerance andLocationCoordinate: (CLLocationCoordinate2D) locationCoordinate andScale: (float) scale andZoom: (double) zoom andMapView: (MKMapView *) mapView andScreenPercentage: (float) screenClickPercentage;
/**
* Build a feature results information message
*
* @param results feature index results
* @param tolerance distance and screen tolerance
* @param locationCoordinate location coordinate
* @param scale scale factor
* @param zoom current zoom level
* @param mapView map view
* @param screenClickPercentage screen click percentage between 0.0 and 1.0
* @param projection desired geometry projection
*
* @return results message or null if no results
*/
-(NSString *) buildResultsInfoMessageAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *) results andTolerance: (GPKGMapTolerance *) tolerance andLocationCoordinate: (CLLocationCoordinate2D) locationCoordinate andScale: (float) scale andZoom: (double) zoom andMapView: (MKMapView *) mapView andScreenPercentage: (float) screenClickPercentage andProjection: (PROJProjection *) projection;
/**
* Build feature table data results
*
* @param results feature index results
* @param tolerance distance and screen tolerance
* @param point point
*
* @return feature table data or nil if no results
*/
-(GPKGFeatureTableData *) buildTableDataAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *) results andTolerance: (GPKGMapTolerance *) tolerance andPoint: (SFPoint *) point;
/**
* Build feature table data results
*
* @param results feature index results
* @param tolerance distance and screen tolerance
* @param point point
* @param projection desired geometry projection
*
* @return feature table data or nil if notresults
*/
-(GPKGFeatureTableData *) buildTableDataAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *) results andTolerance: (GPKGMapTolerance *) tolerance andPoint: (SFPoint *) point andProjection: (PROJProjection *) projection;
/**
* Build feature table data results
*
* @param results feature index results
* @param tolerance distance and screen tolerance
* @param locationCoordinate location coordinate
*
* @return table data or nil if no results
*/
-(GPKGFeatureTableData *) buildTableDataAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *) results andTolerance: (GPKGMapTolerance *) tolerance andLocationCoordinate: (CLLocationCoordinate2D) locationCoordinate;
/**
* Build feature table data results
*
* @param results feature index results
* @param tolerance distance and screen tolerance
* @param locationCoordinate location coordinate
* @param projection desired geometry projection
*
* @return table data or nil if no results
*/
-(GPKGFeatureTableData *) buildTableDataAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *) results andTolerance: (GPKGMapTolerance *) tolerance andLocationCoordinate: (CLLocationCoordinate2D) locationCoordinate andProjection: (PROJProjection *) projection;
/**
* Build a feature table data results
*
* @param results feature index results
* @param tolerance distance and screen tolerance
* @param locationCoordinate location coordinate
* @param scale scale factor
* @param zoom current zoom level
* @param mapView map view
* @param screenClickPercentage screen click percentage between 0.0 and 1.0
* @return feature table data or null if no results
*/
-(GPKGFeatureTableData *) buildTableDataAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *) results andTolerance: (GPKGMapTolerance *) tolerance andLocationCoordinate: (CLLocationCoordinate2D) locationCoordinate andScale: (float) scale andZoom: (double) zoom andMapView: (MKMapView *) mapView andScreenPercentage: (float) screenClickPercentage;
/**
* Build a feature table data results
*
* @param results feature index results
* @param tolerance distance and screen tolerance
* @param locationCoordinate location coordinate
* @param scale scale factor
* @param zoom current zoom level
* @param mapView map view
* @param screenClickPercentage screen click percentage between 0.0 and 1.0
* @param projection desired geometry projection
* @return feature table data or null if no results
*/
-(GPKGFeatureTableData *) buildTableDataAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *) results andTolerance: (GPKGMapTolerance *) tolerance andLocationCoordinate: (CLLocationCoordinate2D) locationCoordinate andScale: (float) scale andZoom: (double) zoom andMapView: (MKMapView *) mapView andScreenPercentage: (float) screenClickPercentage andProjection: (PROJProjection *) projection;
@end
Swift
class GPKGFeatureInfoBuilder : NSObject
Undocumented
-
Table name used when building text
Declaration
Objective-C
@property (nonatomic, strong) NSString *name;
Swift
var name: String! { get set }
-
Max number of points clicked to return detailed information about
Declaration
Objective-C
@property (nonatomic) int maxPointDetailedInfo;
Swift
var maxPointDetailedInfo: Int32 { get set }
-
Max number of features clicked to return detailed information about
Declaration
Objective-C
@property (nonatomic) int maxFeatureDetailedInfo;
Swift
var maxFeatureDetailedInfo: Int32 { get set }
-
Print Point geometries within detailed info when true
Declaration
Objective-C
@property (nonatomic) BOOL detailedInfoPrintPoints;
Swift
var detailedInfoPrintPoints: Bool { get set }
-
Print Feature geometries within detailed info when true
Declaration
Objective-C
@property (nonatomic) BOOL detailedInfoPrintFeatures;
Swift
var detailedInfoPrintFeatures: Bool { get set }
-
Query geometries using geodesic lines
Declaration
Objective-C
@property (nonatomic) BOOL geodesic;
Swift
var geodesic: Bool { get set }
-
Initializer
Declaration
Objective-C
- (instancetype)initWithFeatureDao:(GPKGFeatureDao *)featureDao;
Swift
init!(featureDao: GPKGFeatureDao!)
Parameters
featureDao
feature dao
-
Initializer
Declaration
Objective-C
- (instancetype)initWithFeatureDao:(GPKGFeatureDao *)featureDao andStyles:(GPKGFeatureTableStyles *)featureStyles;
Swift
init!(featureDao: GPKGFeatureDao!, andStyles featureStyles: GPKGFeatureTableStyles!)
Parameters
featureDao
feature dao
featureStyles
feature table styles
-
Initializer
Declaration
Objective-C
- (instancetype)initWithFeatureDao:(GPKGFeatureDao *)featureDao andGeodesic:(BOOL)geodesic;
Swift
init!(featureDao: GPKGFeatureDao!, andGeodesic geodesic: Bool)
Parameters
featureDao
feature dao
geodesic
geodesic check flag
-
Initializer
Declaration
Objective-C
- (instancetype)initWithFeatureDao:(GPKGFeatureDao *)featureDao andStyles:(GPKGFeatureTableStyles *)featureStyles andGeodesic:(BOOL)geodesic;
Swift
init!(featureDao: GPKGFeatureDao!, andStyles featureStyles: GPKGFeatureTableStyles!, andGeodesic geodesic: Bool)
Parameters
featureDao
feature dao
featureStyles
feature table styles
geodesic
geodesic check flag
-
Get the geometry type
Declaration
Objective-C
- (enum SFGeometryType)geometryType;
Swift
func geometryType() -> SFGeometryType
Return Value
geometry type
-
Add a geomtetry type to ignore
Declaration
Objective-C
- (void)ignoreGeometryType:(enum SFGeometryType)geometryType;
Swift
func ignoreGeometryType(_ geometryType: SFGeometryType)
Parameters
geometryType
geometry type
-
Build a feature results information message and close the results
Declaration
Objective-C
- (NSString *)buildResultsInfoMessageAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *)results;
Swift
func buildResultsInfoMessageAndClose(with results: GPKGFeatureIndexResults!) -> String!
Parameters
results
feature index results
Return Value
results message or null if no results
-
Build a feature results information message and close the results
Declaration
Objective-C
- (NSString *)buildResultsInfoMessageAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *)results andProjection: (PROJProjection *) projection;
Swift
func buildResultsInfoMessageAndClose(with results: GPKGFeatureIndexResults!, andProjection projection: PROJProjection!) -> String!
Parameters
results
feature index results
projection
desired geometry projection
Return Value
results message or null if no results
-
Build a feature results information message
Declaration
Objective-C
- (NSString *) buildResultsInfoMessageAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *)results andTolerance: (GPKGMapTolerance *)tolerance andPoint:(SFPoint *)point;
Swift
func buildResultsInfoMessageAndClose(with results: GPKGFeatureIndexResults!, andTolerance tolerance: GPKGMapTolerance!, andPoint point: SFPoint!) -> String!
Parameters
results
feature index results
tolerance
distance and screen tolerance
point
point
Return Value
results message or null if no results
-
Build a feature results information message
Declaration
Objective-C
- (NSString *) buildResultsInfoMessageAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *)results andTolerance: (GPKGMapTolerance *)tolerance andPoint:(SFPoint *)point andProjection: (PROJProjection *)projection;
Swift
func buildResultsInfoMessageAndClose(with results: GPKGFeatureIndexResults!, andTolerance tolerance: GPKGMapTolerance!, andPoint point: SFPoint!, andProjection projection: PROJProjection!) -> String!
Parameters
results
feature index results
tolerance
distance and screen tolerance
point
point
projection
desired geometry projection
Return Value
results message or null if no results
-
Build a feature results information message
Declaration
Objective-C
- (NSString *)buildResultsInfoMessageAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *)results andTolerance: (GPKGMapTolerance *) tolerance andLocationCoordinate: (CLLocationCoordinate2D) locationCoordinate;
Swift
func buildResultsInfoMessageAndClose(with results: GPKGFeatureIndexResults!, andTolerance tolerance: GPKGMapTolerance!, andLocationCoordinate locationCoordinate: CLLocationCoordinate2D) -> String!
Parameters
results
feature index results
tolerance
distance and screen tolerance
locationCoordinate
location coordinate
Return Value
results message or null if no results
-
-buildResultsInfoMessageAndCloseWithFeatureIndexResults:
andTolerance: andLocationCoordinate: andProjection: Build a feature results information message
Declaration
Objective-C
- (NSString *) buildResultsInfoMessageAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *)results andTolerance: (GPKGMapTolerance *)tolerance andLocationCoordinate: (CLLocationCoordinate2D) locationCoordinate andProjection: (PROJProjection *)projection;
Swift
func buildResultsInfoMessageAndClose(with results: GPKGFeatureIndexResults!, andTolerance tolerance: GPKGMapTolerance!, andLocationCoordinate locationCoordinate: CLLocationCoordinate2D, andProjection projection: PROJProjection!) -> String!
Parameters
results
feature index results
tolerance
distance and screen tolerance
locationCoordinate
location coordinate
projection
desired geometry projection
Return Value
results message or null if no results
-
-buildResultsInfoMessageAndCloseWithFeatureIndexResults:
andTolerance: andLocationCoordinate: andScale: andZoom: andMapView: andScreenPercentage: Build a feature results information message
Declaration
Objective-C
- (NSString *) buildResultsInfoMessageAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *)results andTolerance: (GPKGMapTolerance *)tolerance andLocationCoordinate: (CLLocationCoordinate2D) locationCoordinate andScale:(float)scale andZoom:(double)zoom andMapView:(MKMapView *)mapView andScreenPercentage: (float)screenClickPercentage;
Swift
func buildResultsInfoMessageAndClose(with results: GPKGFeatureIndexResults!, andTolerance tolerance: GPKGMapTolerance!, andLocationCoordinate locationCoordinate: CLLocationCoordinate2D, andScale scale: Float, andZoom zoom: Double, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> String!
Parameters
results
feature index results
tolerance
distance and screen tolerance
locationCoordinate
location coordinate
scale
scale factor
zoom
current zoom level
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0
Return Value
results message or null if no results
-
-buildResultsInfoMessageAndCloseWithFeatureIndexResults:
andTolerance: andLocationCoordinate: andScale: andZoom: andMapView: andScreenPercentage: andProjection: Build a feature results information message
Declaration
Objective-C
- (NSString *) buildResultsInfoMessageAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *)results andTolerance: (GPKGMapTolerance *)tolerance andLocationCoordinate: (CLLocationCoordinate2D) locationCoordinate andScale:(float)scale andZoom:(double)zoom andMapView:(MKMapView *)mapView andScreenPercentage: (float)screenClickPercentage andProjection: (PROJProjection *)projection;
Swift
func buildResultsInfoMessageAndClose(with results: GPKGFeatureIndexResults!, andTolerance tolerance: GPKGMapTolerance!, andLocationCoordinate locationCoordinate: CLLocationCoordinate2D, andScale scale: Float, andZoom zoom: Double, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float, andProjection projection: PROJProjection!) -> String!
Parameters
results
feature index results
tolerance
distance and screen tolerance
locationCoordinate
location coordinate
scale
scale factor
zoom
current zoom level
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0
projection
desired geometry projection
Return Value
results message or null if no results
-
Build feature table data results
Declaration
Objective-C
- (GPKGFeatureTableData *) buildTableDataAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *)results andTolerance:(GPKGMapTolerance *)tolerance andPoint:(SFPoint *)point;
Swift
func buildTableDataAndClose(with results: GPKGFeatureIndexResults!, andTolerance tolerance: GPKGMapTolerance!, andPoint point: SFPoint!) -> GPKGFeatureTableData!
Parameters
results
feature index results
tolerance
distance and screen tolerance
point
point
Return Value
feature table data or nil if no results
-
Build feature table data results
Declaration
Objective-C
- (GPKGFeatureTableData *) buildTableDataAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *)results andTolerance:(GPKGMapTolerance *)tolerance andPoint:(SFPoint *)point andProjection:(PROJProjection *)projection;
Swift
func buildTableDataAndClose(with results: GPKGFeatureIndexResults!, andTolerance tolerance: GPKGMapTolerance!, andPoint point: SFPoint!, andProjection projection: PROJProjection!) -> GPKGFeatureTableData!
Parameters
results
feature index results
tolerance
distance and screen tolerance
point
point
projection
desired geometry projection
Return Value
feature table data or nil if notresults
-
Build feature table data results
Declaration
Objective-C
- (GPKGFeatureTableData *) buildTableDataAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *)results andTolerance:(GPKGMapTolerance *)tolerance andLocationCoordinate: (CLLocationCoordinate2D)locationCoordinate;
Swift
func buildTableDataAndClose(with results: GPKGFeatureIndexResults!, andTolerance tolerance: GPKGMapTolerance!, andLocationCoordinate locationCoordinate: CLLocationCoordinate2D) -> GPKGFeatureTableData!
Parameters
results
feature index results
tolerance
distance and screen tolerance
locationCoordinate
location coordinate
Return Value
table data or nil if no results
-
Build feature table data results
Declaration
Objective-C
- (GPKGFeatureTableData *) buildTableDataAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *)results andTolerance:(GPKGMapTolerance *)tolerance andLocationCoordinate: (CLLocationCoordinate2D)locationCoordinate andProjection:(PROJProjection *)projection;
Swift
func buildTableDataAndClose(with results: GPKGFeatureIndexResults!, andTolerance tolerance: GPKGMapTolerance!, andLocationCoordinate locationCoordinate: CLLocationCoordinate2D, andProjection projection: PROJProjection!) -> GPKGFeatureTableData!
Parameters
results
feature index results
tolerance
distance and screen tolerance
locationCoordinate
location coordinate
projection
desired geometry projection
Return Value
table data or nil if no results
-
-buildTableDataAndCloseWithFeatureIndexResults:
andTolerance: andLocationCoordinate: andScale: andZoom: andMapView: andScreenPercentage: Build a feature table data results
Declaration
Objective-C
- (GPKGFeatureTableData *) buildTableDataAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *)results andTolerance:(GPKGMapTolerance *)tolerance andLocationCoordinate: (CLLocationCoordinate2D)locationCoordinate andScale:(float)scale andZoom:(double)zoom andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
func buildTableDataAndClose(with results: GPKGFeatureIndexResults!, andTolerance tolerance: GPKGMapTolerance!, andLocationCoordinate locationCoordinate: CLLocationCoordinate2D, andScale scale: Float, andZoom zoom: Double, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGFeatureTableData!
Parameters
results
feature index results
tolerance
distance and screen tolerance
locationCoordinate
location coordinate
scale
scale factor
zoom
current zoom level
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0
Return Value
feature table data or null if no results
-
-buildTableDataAndCloseWithFeatureIndexResults:
andTolerance: andLocationCoordinate: andScale: andZoom: andMapView: andScreenPercentage: andProjection: Build a feature table data results
Declaration
Objective-C
- (GPKGFeatureTableData *) buildTableDataAndCloseWithFeatureIndexResults: (GPKGFeatureIndexResults *)results andTolerance:(GPKGMapTolerance *)tolerance andLocationCoordinate: (CLLocationCoordinate2D)locationCoordinate andScale:(float)scale andZoom:(double)zoom andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage andProjection:(PROJProjection *)projection;
Swift
func buildTableDataAndClose(with results: GPKGFeatureIndexResults!, andTolerance tolerance: GPKGMapTolerance!, andLocationCoordinate locationCoordinate: CLLocationCoordinate2D, andScale scale: Float, andZoom zoom: Double, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float, andProjection projection: PROJProjection!) -> GPKGFeatureTableData!
Parameters
results
feature index results
tolerance
distance and screen tolerance
locationCoordinate
location coordinate
scale
scale factor
zoom
current zoom level
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0
projection
desired geometry projection
Return Value
feature table data or null if no results