GPKGFeatureShape

Objective-C

@interface GPKGFeatureShape : NSObject

/**
 *  Initializer
 *
 *  @param featureId feature id
 *
 *  @return new feature shape
 */
-(instancetype) initWithId: (int) featureId;

/**
 * Get feature id
 *
 * @return feature id
 */
-(int) featureId;

/**
 * Get the map shapes
 *
 * @return map shapes
 */
-(NSMutableArray<GPKGMapShape *> *) shapes;

/**
 * Get the map metadata shapes
 *
 * @return map metadata shapes
 */
-(NSMutableArray<GPKGMapShape *> *) metadataShapes;

/**
 * Add a map shape
 *
 * @param shape map shape
 */
-(void) addShape: (GPKGMapShape *) shape;

/**
 * Add a metadata map shape
 *
 * @param shape metadata map shape
 */
-(void) addMetadataShape: (GPKGMapShape *) shape;

/**
 * Get the count of map shapes
 *
 * @return map shapes count
 */
-(int) count;

/**
 * Determine if there are map shapes
 *
 * @return true if has map shapes
 */
-(BOOL) hasShapes;

/**
 * Get the count of map metadata shapes
 *
 * @return map metadata shapes count
 */
-(int) countMetadataShapes;

/**
 * Determine if there are map metadata shapes
 *
 * @return true if has map metadata shapes
 */
-(BOOL) hasMetadataShapes;

/**
 * Remove all map shapes and metadata map shapes from the map and feature shape
 *
 * @param mapView map view
 */
-(void) removeFromMapView: (MKMapView *) mapView;

/**
 * Remove the map shapes from the map and feature shape
 *
 * @param mapView map view
 */
-(void) removeShapesFromMapView: (MKMapView *) mapView;

/**
 * Remove the map metadata shapes from the map and feature shape
 *
 * @param mapView map view
 */
-(void) removeMetadataShapesFromMapView: (MKMapView *) mapView;

@end

Swift

class GPKGFeatureShape : NSObject

Undocumented

  • Initializer

    Declaration

    Objective-C

    - (instancetype)initWithId:(int)featureId;

    Swift

    init!(id featureId: Int32)

    Parameters

    featureId

    feature id

    Return Value

    new feature shape

  • Get feature id

    Declaration

    Objective-C

    - (int)featureId;

    Swift

    func featureId() -> Int32

    Return Value

    feature id

  • Get the map shapes

    Declaration

    Objective-C

    - (NSMutableArray<GPKGMapShape *> *)shapes;

    Swift

    func shapes() -> NSMutableArray!

    Return Value

    map shapes

  • Get the map metadata shapes

    Declaration

    Objective-C

    - (NSMutableArray<GPKGMapShape *> *)metadataShapes;

    Swift

    func metadataShapes() -> NSMutableArray!

    Return Value

    map metadata shapes

  • Add a map shape

    Declaration

    Objective-C

    - (void)addShape:(GPKGMapShape *)shape;

    Swift

    func addShape(_ shape: GPKGMapShape!)

    Parameters

    shape

    map shape

  • Add a metadata map shape

    Declaration

    Objective-C

    - (void)addMetadataShape:(GPKGMapShape *)shape;

    Swift

    func addMetadataShape(_ shape: GPKGMapShape!)

    Parameters

    shape

    metadata map shape

  • Get the count of map shapes

    Declaration

    Objective-C

    - (int)count;

    Swift

    func count() -> Int32

    Return Value

    map shapes count

  • Determine if there are map shapes

    Declaration

    Objective-C

    - (BOOL)hasShapes;

    Swift

    func hasShapes() -> Bool

    Return Value

    true if has map shapes

  • Get the count of map metadata shapes

    Declaration

    Objective-C

    - (int)countMetadataShapes;

    Swift

    func countMetadataShapes() -> Int32

    Return Value

    map metadata shapes count

  • Determine if there are map metadata shapes

    Declaration

    Objective-C

    - (BOOL)hasMetadataShapes;

    Swift

    func hasMetadataShapes() -> Bool

    Return Value

    true if has map metadata shapes

  • Remove all map shapes and metadata map shapes from the map and feature shape

    Declaration

    Objective-C

    - (void)removeFromMapView:(MKMapView *)mapView;

    Swift

    func remove(from mapView: MKMapView!)

    Parameters

    mapView

    map view

  • Remove the map shapes from the map and feature shape

    Declaration

    Objective-C

    - (void)removeShapesFromMapView:(MKMapView *)mapView;

    Swift

    func removeShapes(from mapView: MKMapView!)

    Parameters

    mapView

    map view

  • Remove the map metadata shapes from the map and feature shape

    Declaration

    Objective-C

    - (void)removeMetadataShapesFromMapView:(MKMapView *)mapView;

    Swift

    func removeMetadataShapes(from mapView: MKMapView!)

    Parameters

    mapView

    map view