GPKGDgiwgFileName

Objective-C

@interface GPKGDgiwgFileName : NSObject

Swift

class GPKGDgiwgFileName : NSObject

DGIWG (Defence Geospatial Information Working Group) GeoPackage File Name

  • GeoPackage producer

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *producer;

    Swift

    var producer: String! { get set }
  • Data Product(s)

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *dataProduct;

    Swift

    var dataProduct: String! { get set }
  • Geographic Coverage Area

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *geographicCoverageArea;

    Swift

    var geographicCoverageArea: String! { get set }
  • Zoom Levels

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *zoomLevels;

    Swift

    var zoomLevels: String! { get set }
  • Version

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *version;

    Swift

    var version: String! { get set }
  • GeoPackage Creation Date

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *creationDateText;

    Swift

    var creationDateText: String! { get set }
  • GeoPackage Creation Date

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDate *creationDate;

    Swift

    var creationDate: Date! { get set }
  • Optional additional elements, for mission or agency specific use

    Declaration

    Objective-C

    @property (nonatomic, strong) NSMutableArray<NSString *> *additional;

    Swift

    var additional: NSMutableArray! { get set }
  • Initialize

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()

    Return Value

    new file name

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithName:(NSString *)name;

    Swift

    init!(name: String!)

    Parameters

    name

    GeoPackage file name or path

    Return Value

    new file name

  • Get the zoom level part 1, max zoom or scale map units

    Declaration

    Objective-C

    - (NSNumber *)zoomLevel1;

    Swift

    func zoomLevel1() -> NSNumber!

    Return Value

    zoom level part 1

  • Has a zoom level part 1, max zoom or scale map units

    Declaration

    Objective-C

    - (BOOL)hasZoomLevel1;

    Swift

    func hasZoomLevel1() -> Bool

    Return Value

    true if has zoom level part 1

  • Get the zoom level part 2, max zoom or scale surface units

    Declaration

    Objective-C

    - (NSNumber *)zoomLevel2;

    Swift

    func zoomLevel2() -> NSNumber!

    Return Value

    zoom level part 2

  • Has a zoom level part 2, max zoom or scale surface units

    Declaration

    Objective-C

    - (BOOL)hasZoomLevel2;

    Swift

    func hasZoomLevel2() -> Bool

    Return Value

    true if has zoom level part 2

  • Set the zoom level range

    Declaration

    Objective-C

    - (void)setZoomLevelRangeWithMin:(int)minZoom andMax:(int)maxZoom;

    Swift

    func setZoomLevelRangeWithMin(_ minZoom: Int32, andMax maxZoom: Int32)

    Parameters

    minZoom

    min zoom level

    maxZoom

    max zoom level

  • Set the zoom level map scale

    Declaration

    Objective-C

    - (void)setZoomLevelScaleWithMapUnits:(int)mapUnits
                          andSurfaceUnits:(int)surfaceUnits;

    Swift

    func setZoomLevelScaleWithMapUnits(_ mapUnits: Int32, andSurfaceUnits surfaceUnits: Int32)

    Parameters

    mapUnits

    scale map units

    surfaceUnits

    scale surface units

  • Get the major version

    Declaration

    Objective-C

    - (NSNumber *)majorVersion;

    Swift

    func majorVersion() -> NSNumber!

    Return Value

    major version

  • Has a major version

    Declaration

    Objective-C

    - (BOOL)hasMajorVersion;

    Swift

    func hasMajorVersion() -> Bool

    Return Value

    true if has major version

  • Get the minor version

    Declaration

    Objective-C

    - (NSNumber *)minorVersion;

    Swift

    func minorVersion() -> NSNumber!

    Return Value

    minor version

  • Has a minor version

    Declaration

    Objective-C

    - (BOOL)hasMinorVersion;

    Swift

    func hasMinorVersion() -> Bool

    Return Value

    true if has minor version

  • Set the version

    Declaration

    Objective-C

    - (void)setVersionWithMajor:(int)majorVersion andMinor:(int)minorVersion;

    Swift

    func setVersionWithMajor(_ majorVersion: Int32, andMinor minorVersion: Int32)

    Parameters

    majorVersion

    major version

    minorVersion

    minor version

  • Has additional elements

    Declaration

    Objective-C

    - (BOOL)hasAdditional;

    Swift

    func hasAdditional() -> Bool

    Return Value

    true if has additional elements

  • Add an additional element

    Declaration

    Objective-C

    - (void)addAdditional:(NSString *)additional;

    Swift

    func addAdditional(_ additional: String!)

    Parameters

    additional

    additional element

  • Determine if a complete informative file name

    Declaration

    Objective-C

    - (BOOL)isInformative;

    Swift

    func isInformative() -> Bool

    Return Value

    true if informative

  • Get the file name

    Declaration

    Objective-C

    - (NSString *)name;

    Swift

    func name() -> String!

    Return Value

    file name

  • Get the file name with GeoPackage extension

    Declaration

    Objective-C

    - (NSString *)nameWithExtension;

    Swift

    func nameWithExtension() -> String!

    Return Value

    file name with extension

  • Replace word delimiters with spaces

    Declaration

    Objective-C

    - (NSString *)delimitersToSpaces:(NSString *)value;

    Swift

    func delimiters(toSpaces value: String!) -> String!

    Parameters

    value

    delimited value

    Return Value

    space replaced value