GPKGGeometryExtensions

Objective-C

@interface GPKGGeometryExtensions : GPKGBaseExtension

Swift

class GPKGGeometryExtensions : GPKGBaseExtension

Geometry Extensions utility methods and constants

https://www.geopackage.org/spec/#extension_geometry_types

  • Geometry Types Extension definition URL

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *geometryTypesDefinition;

    Swift

    var geometryTypesDefinition: String! { get set }
  • Deprecated

    User Geometry Types Extension definition URL @deprecated as of 1.2.1, On August 15, 2016 the GeoPackage SWG voted to remove this extension from the standard due to interoperability concerns. (GeoPackage version 1.2)

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *userGeometryTypesDefinition;

    Swift

    var userGeometryTypesDefinition: String! { get set }
  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithGeoPackage:(GPKGGeoPackage *)geoPackage;

    Swift

    init!(geoPackage: GPKGGeoPackage!)

    Parameters

    geoPackage

    GeoPackage

    Return Value

    new instance

  • Get or create the extension, non-linear geometry type

    Declaration

    Objective-C

    - (GPKGExtensions *)extensionCreateWithTable:(NSString *)tableName
                                       andColumn:(NSString *)columnName
                                         andType:(enum SFGeometryType)geometryType;

    Swift

    func extensionCreate(withTable tableName: String!, andColumn columnName: String!, andType geometryType: SFGeometryType) -> GPKGExtensions!

    Parameters

    tableName

    table name

    columnName

    column name

    geometryType

    geometry type

    Return Value

    extension

  • Determine if the GeoPackage has the extension, non-linear geometry type

    Declaration

    Objective-C

    - (BOOL)hasWithTable:(NSString *)tableName
               andColumn:(NSString *)columnName
                 andType:(enum SFGeometryType)geometryType;

    Swift

    func has(withTable tableName: String!, andColumn columnName: String!, andType geometryType: SFGeometryType) -> Bool

    Parameters

    tableName

    table name

    columnName

    column name

    geometryType

    geometry type

    Return Value

    true if has extension

  • Determine if the geometry type is an extension

    Declaration

    Objective-C

    + (BOOL)isExtension:(enum SFGeometryType)geometryType;

    Swift

    class func isExtension(_ geometryType: SFGeometryType) -> Bool

    Parameters

    geometryType

    geometry type

    Return Value

    true if an extension

  • Determine if the geometry type is non standard

    Declaration

    Objective-C

    + (BOOL)isNonStandard:(enum SFGeometryType)geometryType;

    Swift

    class func isNonStandard(_ geometryType: SFGeometryType) -> Bool

    Parameters

    geometryType

    geometry type

    Return Value

    true if non standard

  • Determine if the geometry type is a GeoPackage extension

    Declaration

    Objective-C

    + (BOOL)isGeoPackageExtension:(enum SFGeometryType)geometryType;

    Swift

    class func isGeoPackageExtension(_ geometryType: SFGeometryType) -> Bool

    Parameters

    geometryType

    geometry type

    Return Value

    true if a GeoPackage extension

  • Get the extension name of a GeoPackage extension Geometry

    Declaration

    Objective-C

    + (NSString *)extensionName:(enum SFGeometryType)geometryType;

    Swift

    class func extensionName(_ geometryType: SFGeometryType) -> String!

    Parameters

    geometryType

    geometry type

    Return Value

    extension name

  • Deprecated

    Get or create the extension, user defined geometry type

    Declaration

    Objective-C

    - (GPKGExtensions *)extensionCreateWithTable:(NSString *)tableName
                                       andColumn:(NSString *)columnName
                                       andAuthor:(NSString *)author
                                         andType:(enum SFGeometryType)geometryType;

    Swift

    func extensionCreate(withTable tableName: String!, andColumn columnName: String!, andAuthor author: String!, andType geometryType: SFGeometryType) -> GPKGExtensions!

    Parameters

    tableName

    table name

    columnName

    column name

    author

    extension author

    geometryType

    geometry type

    Return Value

    extension @deprecated as of 1.2.1, On August 15, 2016 the GeoPackage SWG voted to remove this extension from the standard due to interoperability concerns. (GeoPackage version 1.2)

  • Deprecated

    Determine if the GeoPackage has the extension, user defined geometry type

    Declaration

    Objective-C

    - (BOOL)hasWithTable:(NSString *)tableName
               andColumn:(NSString *)columnName
               andAuthor:(NSString *)author
                 andType:(enum SFGeometryType)geometryType;

    Swift

    func has(withTable tableName: String!, andColumn columnName: String!, andAuthor author: String!, andType geometryType: SFGeometryType) -> Bool

    Parameters

    tableName

    table name

    columnName

    column name

    author

    extension author

    geometryType

    geometry type

    Return Value

    true if has extension @deprecated as of 1.2.1, On August 15, 2016 the GeoPackage SWG voted to remove this extension from the standard due to interoperability concerns. (GeoPackage version 1.2)

  • Deprecated

    Get the extension name of an extension Geometry, either user-defined or GeoPackage extension

    Declaration

    Objective-C

    + (NSString *)extensionNameWithAuthor:(NSString *)author
                                  andType:(enum SFGeometryType)geometryType;

    Swift

    class func extensionName(withAuthor author: String!, andType geometryType: SFGeometryType) -> String!

    Parameters

    author

    author

    geometryType

    geometry type

    Return Value

    extension name @deprecated as of 1.2.1, On August 15, 2016 the GeoPackage SWG voted to remove this extension from the standard due to interoperability concerns. (GeoPackage version 1.2)