GPKGContents

Objective-C

@interface GPKGContents : NSObject <NSMutableCopying>

Swift

class GPKGContents : NSObject, NSMutableCopying

Contents object. Provides identifying and descriptive information that an application can display to a user in a menu of geospatial data that is available for access and/or update.

  • The name of the tiles, or feature table

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *tableName;

    Swift

    var tableName: String! { get set }
  • Type of data stored in the table:. “features” per clause Features, “tiles” per clause Tiles, or an implementer-defined value for other data tables per clause in an Extended GeoPackage.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *dataType;

    Swift

    var dataType: String! { get set }
  • A human-readable identifier (e.g. short name) for the table_name content

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *identifier;

    Swift

    var identifier: String! { get set }
  • A human-readable description for the table_name content

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *theDescription;

    Swift

    var theDescription: String! { get set }
  • timestamp value in ISO 8601 format as defined by the strftime function %Y-%m-%dT%H:%M:%fZ format string applied to the current time

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDate *lastChange;

    Swift

    var lastChange: Date! { get set }
  • Bounding box minimum easting or longitude for all content in table_name

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDecimalNumber *minX;

    Swift

    var minX: NSDecimalNumber! { get set }
  • Bounding box minimum northing or latitude for all content in table_name

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDecimalNumber *minY;

    Swift

    var minY: NSDecimalNumber! { get set }
  • Bounding box maximum easting or longitude for all content in table_name

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDecimalNumber *maxX;

    Swift

    var maxX: NSDecimalNumber! { get set }
  • Bounding box maximum northing or latitude for all content in table_name

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDecimalNumber *maxY;

    Swift

    var maxY: NSDecimalNumber! { get set }
  • Unique identifier for each Spatial Reference System within a GeoPackage

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *srsId;

    Swift

    var srsId: NSNumber! { get set }
  • Get the Contents Data Type

    Declaration

    Objective-C

    - (enum GPKGContentsDataType)contentsDataType;

    Return Value

    Contents Data Type

  • Set the Contents Data Type

    Declaration

    Objective-C

    - (void)setContentsDataType:(enum GPKGContentsDataType)dataType;

    Parameters

    dataType

    Contents Data Type

  • Set the data type name and register the core data type

    Declaration

    Objective-C

    - (void)setDataType:(NSString *)name
        asContentsDataType:(enum GPKGContentsDataType)dataType;

    Parameters

    name

    data type name

    dataType

    core data type

  • Determine if the contents data type is features

    Declaration

    Objective-C

    - (BOOL)isFeaturesType;

    Swift

    func isFeaturesType() -> Bool

    Return Value

    true if features type

  • Determine if the contents data type is features or unknown

    Declaration

    Objective-C

    - (BOOL)isFeaturesTypeOrUnknown;

    Swift

    func isFeaturesTypeOrUnknown() -> Bool

    Return Value

    true if features type or unknown

  • Determine if the contents data type is tiles

    Declaration

    Objective-C

    - (BOOL)isTilesType;

    Swift

    func isTilesType() -> Bool

    Return Value

    true if tiles type

  • Determine if the contents data type is tiles or unknown

    Declaration

    Objective-C

    - (BOOL)isTilesTypeOrUnknown;

    Swift

    func isTilesTypeOrUnknown() -> Bool

    Return Value

    true if tiles type or unknown

  • Determine if the contents data type is attributes

    Declaration

    Objective-C

    - (BOOL)isAttributesType;

    Swift

    func isAttributesType() -> Bool

    Return Value

    true if attributes type

  • Determine if the contents data type is attributes or unknown

    Declaration

    Objective-C

    - (BOOL)isAttributesTypeOrUnknown;

    Swift

    func isAttributesTypeOrUnknown() -> Bool

    Return Value

    true if attributes type or unknown

  • Set the Spatial Reference System

    Declaration

    Objective-C

    - (void)setSrs:(GPKGSpatialReferenceSystem *)srs;

    Swift

    func setSrs(_ srs: GPKGSpatialReferenceSystem!)

    Parameters

    srs

    Spatial Reference System

  • Get a bounding box

    Declaration

    Objective-C

    - (GPKGBoundingBox *)boundingBox;

    Swift

    func boundingBox() -> GPKGBoundingBox!

    Return Value

    bounding box

  • Set a bounding box

    Declaration

    Objective-C

    - (void)setBoundingBox:(GPKGBoundingBox *)boundingBox;

    Swift

    func setBoundingBox(_ boundingBox: GPKGBoundingBox!)

    Parameters

    boundingBox

    bounding box